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

1.0.2 • Public • Published

Swap Case

NPM version NPM downloads Bundle size

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

Installation

npm install text-swap-case --save

Usage

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

License

MIT

/text-swap-case/

    Package Sidebar

    Install

    npm i text-swap-case

    Weekly Downloads

    2,305

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.99 kB

    Total Files

    7

    Last publish

    Collaborators

    • dimetrix