chcase-cli

1.0.0 • Public • Published

GitHub license Build Status npm prettier

chcase-cli

Convert names to specified case, i.e. camel case.

Install

yarn global add chcase-cli

Or

npm install --global chcase-cli

Usage

chcase [option] input
chcase -C camel input
chcase -c input
cat list-of-names.txt | chcase -k

Set output case:
  --case, -C  Which case to convert to
        [string] [choices: "camel", "kebab", "lower", "snake", "start", "upper"]

Shortcuts for --case [name]:
  --camel, -c  camelCase                                               [boolean]
  --kebab, -k  kebab-case                                              [boolean]
  --lower, -l  lowercase                                               [boolean]
  --snake, -s  snake_case                                              [boolean]
  --start, -t  Start Case                                              [boolean]
  --upper, -u  UPPERCASE                                               [boolean]

Options:
  --help  Show help                                                    [boolean]

License

MIT © therealklanni

Package Sidebar

Install

npm i chcase-cli

Weekly Downloads

12

Version

1.0.0

License

MIT

Last publish

Collaborators

  • therealklanni