clean-special-chars
v1.0.7
Published
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
Downloads
15
Maintainers
Readme
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