Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 405 Bytes

README.md

File metadata and controls

33 lines (19 loc) · 405 Bytes

remove-diacritics

Remove diacritics/accents from a string.

Installation

$ npm install remove-diacritics

Usage

const removeDiacritics = require('remove-diacritics')

let str = 'Der Bär frisst.'

console.log(removeDiacritics(str))
// Der Bar frisst.

console.log(removeDiacritics(str, 'de_DE'))
// Der Baer frisst.

License

ISC