Preeti to Unicode Converter

Converts Preeti and other Nepali fonts to Unicode

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/565546/1750869/Preeti%20to%20Unicode%20Converter.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
kid4rm90s
Version
1.1.0
Created
2026-02-08
Updated
2026-02-08
Size
14.7 KB
License
MIT

preeti

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.

Usage

preeti('sf7df08"');
> 'काठमाण्डू'

In NodeJS

preeti = require('preeti');
preeti('sf7df08"');

Other fonts

You also can use converters for other fonts by providing a second parameter. Here is the list of all supported fonts.

preeti('sf&df)*"', 'PCS Nepali');
preeti('sf7df08"', 'Kantipur');
preeti('sf&df)*"', 'Fontasy Himali TT');
preeti('sf7df08"', 'Sagarmatha');

Original Shell and JS code

This project is based on code and regular expressions from the FOSS Nepal community

License

Creative Commons Attribution Non-Commerical Share-Alike