Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankur700/nepalitextconversion
https://github.com/ankur700/nepalitextconversion
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ankur700/nepalitextconversion
- Owner: ankur700
- Created: 2024-02-05T15:56:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-06T19:03:42.000Z (about 1 year ago)
- Last Synced: 2024-02-06T20:24:45.312Z (about 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This package converts unicode text to preeti and vice-versa. This is a simple package with only two functions convertToPreeti and convertToUnicode.
```bash
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 .
```jsx
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 .
```jsx
import {convertToPreeti} from 'nepali-text-conversion';const preeti_text = "हेल्लो";
const unicode_text = convertToUnicode(preeti_text);
console.log(preeti_text); // हेल्लो
```