Skip to content

Replace special characters to normalized letters in JavaScript

License

Notifications You must be signed in to change notification settings

PatricNox/SpecialToNormal

Repository files navigation

🌟 SpecialToNormal

License: MIT Open Source

npm package yarn package

This package is used to convert special characters to their corresponding "normal" letter.


This package helps you if..

  • You wish to replace those special letters that some languages has, like Swedish "åäö"

  • You have to convert special characters in huge chunks of strings

  • You want to validate a very large text

Install

$ npm install specialtonormal

or

$ yarn add specialtonormal

Usage

import normalizeSpecialCharacters from "specialtonormal";
const normalized = normalizeSpecialCharacters('pátrîcnõx with swedish åäö');
console.log(normalized);  //=> patricnox with swedish aao

License

This package is licensed under MIT


Made by PatricNox - 👋 Get in touch!