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

    1.0.2 • Public • Published

    Header Case

    NPM version NPM downloads Bundle size

    Transform into a dash separated text of capitalized words

    Installation

    npm install text-header-case --save
    

    Usage

    import { headerCase } from "text-header-case";
     
    headerCase("string"); //=> "String"
    headerCase("dot.case"); //=> "Dot-Case"
    headerCase("PascalCase"); //=> "Pascal-Case"
    headerCase("camelCase"); //=> "Camel-Case"
    headerCase("version 1.2.3"); //=> "Version-1-2-3"

    The function also accepts options.

    License

    MIT

    Install

    npm i text-header-case

    DownloadsWeekly Downloads

    589

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.03 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar