wc-stream

1.0.0 • Public • Published

wc-stream

Build Status

Streams implementation of wc(1).

Example

const wc = require('wc-stream');
 
process.stdin
  .pipe(wc())
  .on('data', function (count) {
    console.dir(count);
  })
$ echo 'foo bar' | node example.js
{ word: 2, line: 1, char: 8 }

Usage

wc()

Create an object mode Transform stream. See example above.

License

ISC License.

/wc-stream/

    Package Sidebar

    Install

    npm i wc-stream

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • cdolan