@timdp/lwc
A live-updating version of the UNIX wc command.
Last updated 2 years ago by timdp .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @timdp/lwc 
SYNC missed versions from official npm registry.

lwc

npm JavaScript Standard Style

A live-updating version of the UNIX wc command.

DEPRECATED

This Node.js-based version of lwc is no longer being maintained. Please consider using the Go version, which has more features.

Installation

With npm:

npm install --global @timdp/lwc

With Yarn:

yarn global add @timdp/lwc

Usage

lwc [OPTION]...

Without any options, lwc will count the number of lines, words, and bytes in standard input, and write them to standard output. Contrary to wc, it will also update standard output while it is still counting.

The following wc options are currently supported:

  • --lines or -l
  • --words or -w
  • --chars or -m
  • --bytes or -c

Examples

Count the number of lines in a big file:

lwc --lines < big-file

Run a slow command and count the number of bytes logged:

slow-command | lwc --bytes

TODO

  • Accept file paths in addition to stdin
  • Support --help
  • Support --max-line-length
  • Support --files0-from
  • Add tests

Author

Tim De Pauw

License

MIT

Current Tags

  • 0.2.5                                ...           latest (2 years ago)

8 Versions

  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (6)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |