clean-persian

removes all diacritics and converts the multiple forms to their first form

Usage no npm install needed!

<script type="module">
  import cleanPersian from 'https://cdn.skypack.dev/clean-persian';
</script>

README

clean-persian

removes all diacritics from the given string. preserves persian and english letters and numbers.

usage

npm i clean-persian
# or
yarn add clean-persian
const clean = require('clean-persian');

console.log(clean('آیا مُطمَئِن هَستید؟'));
// result: ایا مطمین هستید