readln
v0.0.1
Published
Read lines from standard input.
Downloads
1
Readme
readln
It is implemented as follows:
echo -e 'line 1\nline2' |
node -e "
//require('readln')(
require('./index.js')(
{},
(accumulator, line, index) => console.log(index, line.length, line),
(accumulator, index) => console.log(index, 'done')
)
"
https://twitter.com/@evanxsummers