Skip to content

CLI to get useful information from a chunk of text. 📠

Notifications You must be signed in to change notification settings

simboonlong/word-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CLI to get useful information from a chunk of text. 📠

Resources

Stars

Watchers

Forks

Packages

No packages published