This package converts unicode text to preeti and vice-versa. This is a simple package with only two functions convertToPreeti and convertToUnicode.
npm install @ankur700/nepali-text-conversion
This functions takes one argument of type Unicode string which get processed and returns the string value as preeti text .
import {convertToPreeti} from 'nepali-text-conversion';
const unicode_text = "हेल्लो";
const preeti_text = convertToPreeti(unicode_text);
console.log(preeti_text); // हेल्लो
This functions takes one argument of type string i.e Preeti, which get evaluated and returns the string value as unicode text .
import {convertToPreeti} from 'nepali-text-conversion';
const preeti_text = "हेल्लो";
const unicode_text = convertToUnicode(preeti_text);
console.log(preeti_text); // हेल्लो