Transform a string by swapping every character from upper to lower case, or lower to upper case.
npm install swap-case --save
import { swapCase } from "swap-case";
swapCase("string"); //=> "STRING"
swapCase("dot.case"); //=> "DOT.CASE"
swapCase("PascalCase"); //=> "pASCALcASE"This package is a pure ESM package and ships with TypeScript definitions. It cannot be require'd or used with CommonJS module resolution in TypeScript.
MIT