Noteworthy Programming Masterpiece
Have ideas to improve npm?Join in the discussion! »

swap-caseTypeScript 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,036,712

Version

2.0.2

License

MIT

Unpacked Size

10.1 kB

Total Files

15

Last publish

Collaborators

  • avatar