text-convert-cli
v1.0.0
Published
A command-line interface for text case conversion using all-in-one-text-case-converter
Maintainers
Readme
Text Convert CLI
A powerful command-line interface for text case conversion using the all-in-one-text-case-converter package.
Installation
npm install -g text-convert-cliOr run directly with npx:
npx text-convert-cli "hello world" --to camelCaseUsage
Basic Usage
text-convert "your text here" --to <format>Available Formats
camelCase- Convert to camelCasesnake_case- Convert to snake_casekebab-case- Convert to kebab-casePascalCase- Convert to PascalCaseTitle Case- Convert to Title Caselowercase- Convert to lowercaseUPPERCASE- Convert to UPPERCASEdot.case- Convert to dot.casepath/case- Convert to path/caseCONSTANT_CASE- Convert to CONSTANT_CASE
Examples
# Convert to camelCase
text-convert "hello world" --to camelCase
# Output: helloWorld
# Convert to snake_case
text-convert "Hello World" --to snake_case
# Output: hello_world
# Convert to kebab-case
text-convert "hello world" --to "kebab-case"
# Output: hello-world
# Convert to PascalCase
text-convert "hello world" --to PascalCase
# Output: HelloWorld
# List all available formats
text-convert --listOptions
-t, --to <format>- Target format for conversion-l, --list- List all available formats-h, --help- Show help information-V, --version- Show version number
Development
Build
npm run buildTest
npm testDevelopment Mode
npm run devLicense
MIT
Related
- all-in-one-text-case-converter - The underlying conversion library
