Skip to content

Streams implementation of the UNIX program wc(1).

License

Notifications You must be signed in to change notification settings

cdolan/wc-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Streams implementation of the UNIX program wc(1).

Resources

License

Stars

Watchers

Forks

Packages

No packages published