Node.js io classes for shell scripts