0.1.6 • Published 3 years ago

readline-limited v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

0.1.6

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago