andrewrk / node-diacritics

remove diacritics from strings ("ascii folding") - Node.js module
MIT License
263 stars 32 forks source link

Export replacementList and diacriticsMap #23

Closed jengeb closed 7 years ago

jengeb commented 7 years ago

Make replacementList and diacriticsMap available.

I developed a npm module srch in which I also handle diacritics. In addition to a string without diacritics I determine the mapping between the original and the transformed string. For the latter issue I just need the raw list/map. I would be very happy if you could merge this addition.

Note: This was also requested in https://github.com/andrewrk/node-diacritics/issues/20.

andrenarchy commented 7 years ago

@andrewrk do you want to merge this change? It's non-breaking and it makes your package even more useful because it can be used in much more situations that just need the raw replacement data. Thx!

andrewrk commented 7 years ago

thanks for the poke.

I merged and published it as 1.3.0

jengeb commented 7 years ago

Thanks for merging!