Nepali Unicode Converter is a JavaScript library for converting text to Nepali Unicode and providing additional utilities for working with Nepali Unicode characters.
npm install nepali-unicode-converter
const nepaliUnicode = require('nepali-unicode-converter'); // Example usage
const result = nepaliUnicode("k cha").convert().getText();
console.log("Converted Text:", result);
- Convert text to Nepali Unicode: Convert standard text to Nepali Unicode characters.
- Reverse Nepali Unicode text: Reverse the order of Nepali Unicode characters.
- Check for Nepali Unicode characters: Determine if the text contains Nepali Unicode characters.
- Count Nepali characters: Count the number of Nepali characters in the text.
- Remove Nepali Unicode characters: Remove Nepali Unicode characters from the text.
- Translate numerals: Translate numerals between Arabic and Nepali in the stored text.
- Generate random Nepali word: Generate a random Nepali word with a specified length.
- Word details breakdown: Get details for each word in terms of English Unicode points, Nepali representation, and Nepali Unicode points.
Creates an instance of ExtendedNepaliUnicode with the given text.
Parameters:
text
(string): The input text.
Example:
javascript const instance = nepaliUnicode("k cha");
Description: Converts the stored text to Nepali Unicode.
Example:
const result = instance.convert().getText();
const randomWord = instance.generateRandomNepaliWord(5);
Return Value: A randomly generated Nepali word with the specified length.
Usage Considerations:
- Use this method to generate a random Nepali word with a specific length.
Description: Returns an object for each word containing its English Unicode points, Nepali representation, and Nepali Unicode points.
Example:
const detailsObject = instance.wordsBreakdown();
Return Value: An object containing details for each word, including English Unicode points, Nepali representation, and Nepali Unicode points.
Usage Considerations:
- Use this method to get details for each word in the text, including its English Unicode points, Nepali representation, and Nepali Unicode points.
If you would like to contribute, please follow the Contributing Guidelines.
If you encounter any issues or have suggestions, please open an issue on the Issues page.
This project is licensed under the MIT License.