InstallPad each line in a stream
npm install pad-streamUsage
// pad.js import padStream from 'pad-stream'; process.stdin.pipe(padStream(2, '>')).pipe(process.stdout);
$ echo 'foo\nbar' | node pad.js
>>foo
>>bar
API padStream(count, indent?)
Returns a transform stream.
countType: number
(integer)
The number of times to repeat indent
.
Type: string
Default: ' '
The string to use as indent.
RelatedRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4