1.0.4 • Published 2 years ago

@bernardsch/remove-accents v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

remove-accents

Simple helper to replace accented characters like éüàôç with their basic form (i.e. euaoc).

The first parameter should be a string otherwhise it will be returned without processing.

The optional second parameter transforms result to lower case if set to true.

Usage :

const {removeAccents} = require('@bernardsch/remove-accents');
const str = "J'étais fatigué.";
console.log(removeAccents(str, true));

Expected : j'etais fatigue.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago