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

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

    2.0.2 • Public • Published

    Swap Case

    NPM version NPM downloads Bundle size

    Transform a string by swapping every character from upper to lower case, or lower to upper case.

    Installation

    npm install swap-case --save
    

    Usage

    import { swapCase } from "swap-case";
    
    swapCase("string"); //=> "STRING"
    swapCase("dot.case"); //=> "DOT.CASE"
    swapCase("PascalCase"); //=> "pASCALcASE"

    License

    MIT

    Install

    npm i swap-case

    DownloadsWeekly Downloads

    1,569,811

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar