@imcooder/mr-base

1.0.18 • Public • Published

mr-base

split stdio as test line

NPM version npm download David deps

Install

npm i @imcooder/mr-base -S

Usage

parse.js

const MRBase = require('mr-base');
let mr = new MRBase();
let lineNumber = 0;
mr.on('line', line => {
    console.log(line);
	lineNumber ++;
});
mr.on('end', () => {
    console.log(lineNumber);
});

use:

cat test.log | node parse.js

Example

License

The MIT License

Package Sidebar

Install

npm i @imcooder/mr-base

Weekly Downloads

0

Version

1.0.18

License

MIT

Unpacked Size

12.2 kB

Total Files

3

Last publish

Collaborators

  • imcooder