UNPKG
shaper
Version:
latest (0.0.5)
0.0.5
0.0.3
0.0.2
0.0.1
Create throttled through stream
github.com/sidorares/node-shaper
shaper
/
examples
/
slowfind.js
6 lines
(4 loc)
•
167 B
JavaScript
View Raw
1
2
3
4
5
6
var shaper =
require
(
'..'
); var execStream =
require
(
'exec_stream'
); var
find
= execStream(
'find'
, [
'/'
]);
find
.pipe(shaper(
15
)).pipe(process.
stdout
, {
end
:
false
} );