Neurophysiologically Pseudoscientific Manatee
    Have ideas to improve npm?Join in the discussion! »

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

    3.0.4 • Public • Published

    Constant Case

    NPM version NPM downloads Bundle size

    Transform into upper case string with an underscore between words.

    Installation

    npm install constant-case --save
    

    Usage

    import { constantCase } from "constant-case";
    
    constantCase("string"); //=> "STRING"
    constantCase("dot.case"); //=> "DOT_CASE"
    constantCase("PascalCase"); //=> "PASCAL_CASE"
    constantCase("version 1.2.10"); //=> "VERSION_1_2_10"

    The function also accepts options.

    License

    MIT

    Install

    npm i constant-case

    DownloadsWeekly Downloads

    2,863,410

    Version

    3.0.4

    License

    MIT

    Unpacked Size

    11.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar