@simboonlong/word-cli

2.2.0 • Public • Published

CI/CD

Word CLI

Command line interface to get useful information from a chunk of text.

Install

npm i -g @simboonlong/word-cli

or

npx -p @simboonlong/word-cli word <command> <arguments>

Demo

Example:

npx -p @simboonlong/word-cli word count 'foobar in hello world!'

The above word count should return 4.


Count

Count total words.

word count 'foobar in hello world!'

Count total characters.

word count 'foobar in hello world!' --character

Occur

Count total occurrences of word in text.

word occur 'foobar in hello world!' --string foobar

Count total occurrences of character in text.

word occur 'foobar in hello world!' --string l --character

Readme

Keywords

none

Package Sidebar

Install

npm i @simboonlong/word-cli

Weekly Downloads

5

Version

2.2.0

License

MIT

Unpacked Size

7.52 kB

Total Files

14

Last publish

Collaborators

  • simboonlong