preeti

1.0.3 • Public • Published

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 PCS Nepali and Kantipur by providing a second parameter.

preeti('sf7df08"', 'PCS Nepali');
preeti('sf7df08"', 'Kantipur');

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    3
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i preeti

Weekly Downloads

3

Version

1.0.3

License

CC-BY-NC-SA-4.0

Last publish

Collaborators

  • ndoiron