- amd support added
- changed german Umlaute: Ü to Ue, Ä to ae etc.
- added 'ß' to 'ss'
Simple library to convert accents (diacritics) from strings to latin characters.
Is is a lookup table taken from http://jsperf.com/latinize packaged for node and browser. Visit the link to see more approaches.
node.js
var latinize = require('latinize');
latinize('naïve áéíóúýčďěňřšťžů'); // => 'naive aeiouycdenrstzu'
browser
<script src="../latinize.js"></script>
<script>
document.write(latinize('naïve áéíóúýčďěňřšťžů'));
</script>