/clean-special-chars

Primary LanguageJavaScriptMIT LicenseMIT

cleanSpecialChars

Converts accented letters to its cleaned form like 'Ã' to 'A', 'ç' to 'c', '&!*' to '', etc. All spaces will be converted to '-' and the text is returned in Lower Case.

It can be installed and used on Node environments.

Usage / Examples

cleanSpecialChars('ação & reação')
// Output: acao-reacao

cleanSpecialChars('ação & reação', {'&': 'and'});
// Output: acao-and-reacao

Installation

npm install clean-special-chars