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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1,815
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1,815
  • 1.0.0
    0

Package Sidebar

Install

npm i text-swap-case

Weekly Downloads

1,468

Version

1.0.2

License

MIT

Unpacked Size

4.99 kB

Total Files

7

Last publish

Collaborators

  • dimetrix