Wondering what’s next for npm?Check out our public roadmap! »

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

    1.0.1 • Public • Published

    Sponge Case

    NPM version NPM downloads Bundle size

    Transform into a string with random capitalization applied.

    Installation

    npm install sponge-case --save
    

    Usage

    import { spongeCase } from "sponge-case";
    
    spongeCase("string"); //=> "sTrinG"
    spongeCase("dot.case"); //=> "dOt.caSE"
    spongeCase("PascalCase"); //=> "pASCaLCasE"
    spongeCase("version 1.2.10"); //=> "VErSIoN 1.2.10"

    Note: Capitalization outcomes are random.

    License

    MIT

    Install

    npm i sponge-case

    DownloadsWeekly Downloads

    474,770

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.11 kB

    Total Files

    14

    Last publish

    Collaborators

    • avatar