fold-case

Unicode case folding, i.e. based on the official Unicode case folding mappings.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
fold-case
211.0.09 years ago9 years agoMinified + gzip package size for fold-case in KB

Readme

foldCase is a letter case folder with full Unicode support, i.e. based on the official Unicode case folding mappings.

Installation

Via npm:
npm install fold-case

API

foldCase.version

A string representing the semantic version number.

foldCase(text)

This function takes a string of text and folds the case for each letter. All the Unicode ‘Full’ case folding mappings are used.

Unit tests & code coverage

After cloning this repository, run npm install to install the dependencies needed for development and testing.
Once that’s done, you can run the unit tests in Node using npm test.

Author

This work is based on a stripped down version of swapcase by Mathias Bynens:
| twitter/mathias | |---| | Mathias Bynens |

License

foldCase is available under the MIT license.