Pad each line in a stream
npm install pad-stream> Pad each line in a stream
``sh`
npm install pad-stream
`js
// pad.js
import padStream from 'pad-stream';
process.stdin.pipe(padStream(2, '>')).pipe(process.stdout);
`
``
$ echo 'foo\nbar' | node pad.js
>>foo
>>bar
Returns a transform stream.
#### count
Type: number (integer)
The number of times to repeat indent.
#### indent
Type: string\' '`
Default:
The string to use as indent.
- indent-string - Indent each line in a string
- indent-string-cli - Indent each line in some text or stdin