/romonisedNepali

Node module to convert romonised Nepali to unicode Nepali character

Primary LanguageJavaScriptMIT LicenseMIT

RomonisedNepali

An node module to convert romonised input to nepali unicode characters. This node module is based on Romonised Nepali to Unicode converter from ashesh.com.np

Table of Contents

Installation

$ npm install -g romonisednepali 

OR

Manully:

$ git clone  https://github.com/psuzn/romonisedNepali.git
$ cd romonisedNepali
$ npm install -g 

Usage

  • Import it into your project
let conveter=requre('romonisednepali');
let converted=converter.comvert("namaskar");
console.log(converted);
//नमस्कार 

if you passed characters inside {} they won't be converted

let conveter=requre('romonisednepali');
let converted=converter.comvert("namaste {Nepal}");
console.log(converted);
//नमस्ते Nepal 

It supports all the conversion techniques as written here

This module adds a executable romonisednepali on /bin/ (not sure /bin or not) which can be executed from teminal to run a converter server on port:8058 which receives a post request as

{   
    data:"namaskar", //characters to be converted
    smartconvert:True //Smart conversion
}

And gives the unicode value of the converted characters as

#¬2344##¬2350##¬2360##¬2381##¬2340##¬2375#

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.