pad-stream alternatives and similar modules
Based on the "Streams" category.
Alternatively, view pad-stream alternatives based on common mentions on social networks and blogs.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of pad-stream or a related project?
Pad each line in a stream
$ npm install --save pad-stream
// pad.js const padStream = require('pad-stream'); process.stdin.pipe(padStream(2, '>')).pipe(process.stdout);
$ echo 'foo\nbar' | node pad.js >>foo >>bar
Returns a transform stream.
Number of times to repeat
String to use as indent.
- indent-string - Indent each line in a string
- indent-string-cli - Indent each line in some text or stdin
MIT © Sindre Sorhus
*Note that all licence references and agreements mentioned in the pad-stream README section above are relevant to that project's source code only.