パッケージの詳細

eol-fix-stream

catdad468ISC1.1.1

end all the things with lf

eol, fix, stream, crlf

readme

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);