Popularity
0.9
Declining
Activity
2.9
-
11
6
6

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Streams     Stream     String     Str     Line     Streaming     CLI     Cli-app     Bin     Pad     Indent     Padding     Lines     Lpad     Left-pad     Left    
Latest version: v2.0.0

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.

Do you think we are missing an alternative of pad-stream or a related project?

Add another 'Streams' Module

README

pad-stream Build Status

Pad each line in a stream

Install

$ npm install --save pad-stream

Usage

// pad.js
const padStream = require('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.

count

Type: number (integer)

Number of times to repeat indent.

indent

Type: string Default: ' '

String to use as indent.

Related

License

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.