Awesome
Word counting made easy. Retrieve the number of words in a string or stdin.
Install
~ ❯❯❯ npm install -g lexis-cli
Usage
~ ❯❯❯ lexis --help
Usage
~ ❯❯❯ lexis <text>
~ ❯❯❯ cat <file> | lexis
~ ❯❯❯ echo <text> | lexis
Example
~ ❯❯❯ lexis 'Lorem ipsum dolor sit amet'
//=> 5
Demo
Related
- lexis-count - API for this module
License
MIT © Nikolaos Kamarinakis