@aissaoui-ahmed/accents

Check or remove accents from a string use CLI or function, Support multi languages.

Usage no npm install needed!

<script type="module">
  import aissaouiAhmedAccents from 'https://cdn.skypack.dev/@aissaoui-ahmed/accents';
</script>

README

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