Skip to content

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

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages