Preeti is a popular font used in Nepal to write Nepali text
Without Preeti font, the text is just ASCII, so this module converts it to Unicode Devanagari characters.
preeti('sf7df08"');
> 'काठमाण्डू'
preeti = require('preeti');
preeti('sf7df08"');
You also can use converters for PCS Nepali and Kantipur by providing a second parameter.
preeti('sf7df08"', 'PCS Nepali');
preeti('sf7df08"', 'Kantipur');
This project is based on code and regular expressions from the FOSS Nepal community
- 2utf8 a Bash command
- nep-ttf2utf a JS and Python3 port by sapradhan
Creative Commons Attribution Non-Commerical Share-Alike