0.0.1 • Published 10 years ago
eol-stream v0.0.1
eol-stream
detect which type of EOL (AKA line-ending, newline) characters are in a stream
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
0.0.1
10 years ago