https://github.com/roppa/diacritic
Replace diacritic characters with alternatives
https://github.com/roppa/diacritic
Last synced: 8 months ago
JSON representation
Replace diacritic characters with alternatives
- Host: GitHub
- URL: https://github.com/roppa/diacritic
- Owner: roppa
- Created: 2014-08-18T11:09:38.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-20T14:18:14.000Z (almost 12 years ago)
- Last Synced: 2025-06-06T12:47:17.470Z (about 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Diacritic
A small library to replace diacritic characters to alternatives.
## Installation
npm install diacritic --save
## Usage
var diacritic = require('diacritic')
remove = diacritic.removeDiacritics;
var accented = "Â é ç è ñ",
escaped = remove(accented);
console.log('accented', accented);
## Tests
npm test