Skip to content

An npm module to remove the diacritical marks from characters in a text.

License

Notifications You must be signed in to change notification settings

papasavva/remove-diacritical-marks

Repository files navigation

remove-diacritical-marks

Build Status codecov npm NPM

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

About

An npm module to remove the diacritical marks from characters in a text.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published