/ live.thehmm.nl / back / node_modules / swap-case /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]node_modules/2 years ago -  
[   ]LICENSE9 years ago1.1K 
[TXT]README.md9 years ago1.4Kd7c1522 post receive test [كارل مبارك]
[   ]package.json2 years ago1.9K 
[TXT]swap-case.d.ts9 years ago 88  
[   ]swap-case.js9 years ago577  
README.md

Swap Case

NPM version NPM downloads Build status Test coverage

Swap the case of a string.

Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.

Installation

npm install swap-case --save

Usage

var swapCase = require('swap-case')

swapCase(null)                   //=> ""
swapCase('string')               //=> "STRING"
swapCase('PascalCase')           //=> "pASCALcASE"
swapCase('Iñtërnâtiônàlizætiøn') //=> "iÑTËRNÂTIÔNÀLIZÆTIØN"

swapCase('My String', 'tr') //=> "mY sTRİNG"

Typings

Includes a TypeScript definition.

License

MIT

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80