Need private packages and team management tools?Check out npm Teams »

swap-case

2.0.1 • 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

611,215

Version

2.0.1

License

MIT

Unpacked Size

10 kB

Total Files

15

Last publish

Collaborators

  • avatar