1.0.4 • Published 9 months ago

@bernardsch/remove-accents v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months 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

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago