Nth Permutation Mathematics
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

indent-stream

1.0.0 • Public • Published

This package has been deprecated

Author message:

Made more flexible, renamed to wrapline.

indent-stream

Indent each line of a stream.

Example

var Indent = require('indent-stream')
var stream = Indent()
fs.createReadStream('before.txt')
.pipe(Indent('  ')) // indent entire stream with 2 spaces
.pipe(fs.createWriteStream('after.txt'))

before.txt

Lorem ipsum dolor sit amet, quo ad quis latine.
Erant scribentur ne ius.
Nostrud vocibus luptatum eam ex, mel novum delenit scaevola no.
No iriure mentitum platonem usu, te nec ocurreret instructior.
Vim quem quis at.

after.txt

  Lorem ipsum dolor sit amet, quo ad quis latine.
  Erant scribentur ne ius.
  Nostrud vocibus luptatum eam ex, mel novum delenit scaevola no.
  No iriure mentitum platonem usu, te nec ocurreret instructior.
  Vim quem quis at.

License

MIT

Keywords

none

install

npm i indent-stream

Downloadsweekly downloads

2

version

1.0.0

license

MIT

last publish

collaborators

  • avatar