Skip to content

Provides a simple package check or remove accents from a string use CLI or function, Support multi languages.

License

Notifications You must be signed in to change notification settings

Aissaoui-Ahmed/accents

Repository files navigation

Accents

Provides a simple package check or remove accents from a string use CLI or function, Support multi languages.

Install

npm i -g @aissaoui-ahmed/accents

Usage

Use CLI

accent --remove "cette chaîne a l'accent comme être"

Result

cette chaine a l'accent comme etre

Use functions

ES6 modules

import { check, remove, hasAccent } from '@aissaoui-ahmed/accents';
import accents from '@aissaoui-ahmed/accents';

Or CommonJS

const { check, remove, hasAccent } = require('@aissaoui-ahmed/accents');
// OR
const accents = require('@aissaoui-ahmed/accents');
remove("Put string here");
check("Put string here");
hasAccent("Put string here")
// OR
accents.remove("Put string here");
accents.check("Put string here");
accents.hasAccent("Put string here")

Report issues and request features with issue tracker