capital-case
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    Capital Case

    NPM version NPM downloads Bundle size

    Transform into a space separated string with each word capitalized.

    Installation

    npm install capital-case --save
    

    Usage

    import { capitalCase } from "capital-case";
    
    capitalCase("string"); //=> "String"
    capitalCase("dot.case"); //=> "Dot Case"
    capitalCase("PascalCase"); //=> "Pascal Case"
    capitalCase("version 1.2.10"); //=> "Version 1 2 10"

    The function also accepts options.

    License

    MIT

    Install

    npm i capital-case

    DownloadsWeekly Downloads

    1,382,082

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    11.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar