Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

caser

eush7710MIT0.1.1

Command-line string casing tool

string, translation, convert, case, conversion, cli, camel-case, capital-case, sentence-case, pascal-case, constant-case, snake-case, dot-case, slug-case, space-case, title-case

readme

npm

caser

Dependency Status

Command-line interface to string casing tools.

Example

$ echo "some kind of a title" |caser --title
Some Kind of a Title

CLI

caser <option>

Caser reads stdin and writes to stdout.

The only options are:

  • --camel
  • --pascal
  • --dot
  • --slug
  • --snake
  • --space
  • --constant
  • --capital
  • --title
  • --sentence
  • --lower
  • --upper
  • --inverse
  • --none

Most of these names are self-descriptive, check out to-case homepage for details (it is the module that actually does all heavy-lifting).

Install

npm install -g caser

License

MIT