nepali-text-conversion

1.0.0 • Public • Published

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

Functions

convertToPreeti()

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); // हेल्लो

convertToUnicode()

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); // हेल्लो

Readme

Keywords

none

Package Sidebar

Install

npm i nepali-text-conversion

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

28.5 kB

Total Files

4

Last publish

Collaborators

  • ankur700