src/cli.js
function readFromStdin(cb) {
    var chunks = []
    var stdin = process.stdin
    stdin.resume()
    stdin.setEncoding('utf8')

    stdin.on('data', function (chunk) {
        chunks.push(chunk)
    })

    stdin.on('end', function() {
        cb(chunks.join(' '))
    })
}
function readFromStdin(cb) {
    var chunks = []
    var stdin = process.stdin
    stdin.resume()
    stdin.setEncoding('utf8')

    stdin.on('data', function (chunk) {
        chunks.push(chunk)
    })

    stdin.on('end', function() {
        cb(chunks.join(' '))
    })
}
function readFromStdin ( cb ) { var chunks = [ ] var stdin = process . stdin stdin . resume ( ) stdin . setEncoding ( 'utf8' ) stdin . on ( 'data' , function ( chunk ) { chunks . push ( chunk ) } ) stdin . on ( 'end' , function ( ) { cb ( chunks . join ( ' ' ) ) } ) }
reads from stdin and execute a callback `cb` passing the the content as param
reads from stdin and execute a callback cb passing the the content as param