0.1.6 • Published 3 years ago
readline-limited v0.1.6
readline-limited
A Node.js package to read a file line by line, with line size limit support.
Install
yarn add readline-limited
Usage
import { readline } from 'readline-limited';
const MAX_LINE_LENGTH = 4 * 1024 * 1024;
const rl = readline(inputPath, MAX_LINE_LENGTH);
rl.on('line', console.log);
rl.on('error', console.error)
rl.on('close', () => {
console.log('closed.')
});
License
This is free software under the terms of MIT the license (check the LICENSE file included in this package).