eol-fix-stream

end all the things with lf


Keywords
eol, fix, stream, crlf, lf, npm
License
ISC
Install
npm install eol-fix-stream@1.0.0

Documentation

eol fix stream

Build Coverage Maintainability Downloads Version Dependency Status

End all the things with lf.

Install

npm install --save eol-fix-stream

Use

var eolFix = require('eol-fix-stream');

var input = getInputStreamSomehow();
var output = getOutputStreamSomehow();

input.pipe(eolFix()).pipe(output);

For example, you can create a CLI module that reads standard input, fixes line endings, and writes to standard output in just two lines:

var eolFix = require('eol-fix-stream');

process.stdin.pipe(eolFix()).pipe(process.stdout);