.. | ||
dist | ||
dist.es2015 | ||
LICENSE | ||
package.json | ||
README.md |
Swap Case
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