remove-diacritical-marks
v1.0.1
Published
Remove diacritical marks from string
Downloads
222
Readme
remove-diacritical-marks
An npm module to remove the diacritical marks from characters in a text. The covered range is 0300 to 036F of the Unicode Standard. It supports multiple languages.
Installation:
npm install remove-diacritical-marks
Usage:
Javascript
const removeDiacriticalMarks = require('remove-diacritical-marks')
const textWithoutDiacritics = removeDiacriticalMarks('Μου αρέσει η Crème brûlée')
console.log(textWithoutDiacritics) //Μου αρεσει η Creme brulee
Typescript
import removeDiacriticalMarks from 'remove-diacritical-marks'
const textWithoutDiacritics : string = removeDiacriticalMarks('Μου αρέσει η Crème brûlée')
console.log(textWithoutDiacritics) //Μου αρεσει η Creme brulee
Tests
Clone the repo, npm install
, and run npm test