Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patricnox/specialtonormal
Replace special characters to normalized letters in JavaScript
https://github.com/patricnox/specialtonormal
normalize npm-package replace-text special-characters yarn-package
Last synced: about 1 month ago
JSON representation
Replace special characters to normalized letters in JavaScript
- Host: GitHub
- URL: https://github.com/patricnox/specialtonormal
- Owner: PatricNox
- License: mit
- Created: 2022-10-19T17:06:07.000Z (about 2 years ago)
- Default Branch: release
- Last Pushed: 2022-10-19T17:44:29.000Z (about 2 years ago)
- Last Synced: 2024-10-10T20:40:56.566Z (about 1 month ago)
- Topics: normalize, npm-package, replace-text, special-characters, yarn-package
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌟 **SpecialToNormal**
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/)[![npm package](https://img.shields.io/badge/package-npm-green)](https://www.npmjs.com/package/specialtonormal) [![yarn package](https://img.shields.io/badge/package-yarn-yellowgreen)](https://www.npmjs.com/package/specialtonormal)
### 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
```js
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](https://github.com/PatricNox/SpecialToNormal/blob/release/LICENSE)
----------
Made by PatricNox - 👋 [Get in touch!](https://www.linkedin.com/in/patricnox)