Skip to content

angleman/clis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clis

sort safe base16 to/from base64 conversion with filename and url safe characters written in pure javascript

Install 🔨

npm install clis -g

Usage 💡

clis 'hello-world' --camelize    # helloWorld
clis 'hello-world' --cam         # helloWorld

clis 'hello-world' --capitalize  # Hello-world
clis 'hello-world' --cap         # Hello-world

clis 'hello   world' --collapseWhitespace  # Hello world
clis 'hello   world' --col                 # Hello world

clis 'dataRate' --dasherize  # data-rate
clis 'dataRate' --das        # data-rate

clis 'this is it' --count is # 2
clis 'this is it' --cou is   # 2

Other supported transformations:

  • dec || decodeHTMLEntities
  • esc || escapeHTML
  • hum || humanize
  • slu || slugify
  • pun || stripPunctuation
  • tag || stripTags
  • tri || trim
  • und || underscore
  • une || unescapeHTML
  • tim || times

See: string.js for additional function details

Contributions 💪

😄 Feedback, problem reports, enhancement requests are welcome.

🆙 Example code are better.

🆒 Pull requests are best.

License

MIT

About

String.js for the command line

Resources

License

Stars

Watchers

Forks

Packages

No packages published