robertosousa1 / replace-special-characters

A library to replace special characters with simple characters.

Home Page:https://www.npmjs.com/package/replace-special-characters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Known Vulnerabilities js-standard-style License: MIT Open Source

Replace Special Characters

In a validation of a very large text, there may be cases in which a word is null or undefined. To prevent this validation from being done manually, our lib is able to do it together with the normalization of the text.

Install

$ npm install replace-special-characters

or

$ yarn add replace-special-characters

Usage

const replaceSpecialCharacters = require('replace-special-characters');

const normalizedString = replaceSpecialCharacters('JäváSçrîpt');
//=> 'JavaScript'

How to contribute

  • Make a fork;
  • Create a branck with your feature: git checkout -b my-feature;
  • Commit changes: git commit -m 'feat: My new feature';
  • Make a push to your branch: git push origin my-feature.

After merging your receipt request to done, you can delete a branch from yours.

License

This project is under the MIT license. See the LICENSE for more information.


Made with by Roberto Alves 👋 Get in touch!

About

A library to replace special characters with simple characters.

https://www.npmjs.com/package/replace-special-characters

License:MIT License


Languages

Language:TypeScript 96.0%Language:JavaScript 4.0%