UNPKG
brush_cli
Version:
latest (0.0.2)
0.0.2
0.0.1
A tool for creating and developing cmos PC Framework project.
brush_cli
/
node_modules
/
readable-wrap
/
example
/
split.js
11 lines
(8 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var split =
require
(
'split'
); var
wrap
=
require
(
'../'
); var through =
require
(
'through2'
); process.
stdin
.pipe(
wrap
.obj(split())).pipe(through.obj(
write
));
function
write
(buf, enc, next)
{ console.
log
(buf.length +
': '
+ buf);
next
(); }