special-chars-replacer

A library for replace special chars from other languages to ASCII chars. Spanish and Portuguese support.

Usage no npm install needed!

<script type="module">
  import specialCharsReplacer from 'https://cdn.skypack.dev/special-chars-replacer';
</script>

README

Usage

You can replace the non-ASCII characters from a string:

const { replacer } = require('special-chars-replacer')

console.log(replacer('EspaƱa'))

The expected output will be:

Espana

Supported language characters are Spanish and Portuguese.