eol-stream

0.0.1 • Public • Published

eol-stream

detect which type of EOL (AKA line-ending, newline) characters are in a stream

NPM

usage

var eolStream = require('eol-stream')
 
fs.createReadStream('file.txt').pipe(eolStream(function (type) {
  
}))

type will be one of 4 things:

  • \r\n
  • \r
  • \n
  • undefined

eol-stream is a passthrough stream

/eol-stream/

    Package Sidebar

    Install

    npm i eol-stream

    Weekly Downloads

    3

    Version

    0.0.1

    License

    BSD

    Last publish

    Collaborators

    • maxogden