Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (text-convert-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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