JSPM

text-convert-cli

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q23581F
  • License MIT

A command-line interface for text case conversion using all-in-one-text-case-converter

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-cli

    Or run directly with npx:

    npx text-convert-cli "hello world" --to camelCase

    Usage

    Basic Usage

    text-convert "your text here" --to <format>

    Available Formats

    • camelCase - Convert to camelCase
    • snake_case - Convert to snake_case
    • kebab-case - Convert to kebab-case
    • PascalCase - Convert to PascalCase
    • Title Case - Convert to Title Case
    • lowercase - Convert to lowercase
    • UPPERCASE - Convert to UPPERCASE
    • dot.case - Convert to dot.case
    • path/case - Convert to path/case
    • CONSTANT_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 --list

    Options

    • -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 build

    Test

    npm test

    Development Mode

    npm run dev

    License

    MIT