catdad / eol-fix-stream

:beginner: end all the things with lf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:beginner: end all the things with lf


Languages

Language:JavaScript 100.0%