A comprehensive utility library for working with Bangla (Bengali) numbers, dates, math operations, and more.
Install the library via npm:
npm install bangla-utils
Import and use the utilities in your project:
import {
welcome,
convertToBanglaDigits,
utcToLocalTimestamp,
} from 'bangla-utils';
console.log(welcome()); // Output: "স্বাগতম!"
console.log(convertToBanglaDigits(12345)); // Output: "১২৩৪৫"
console.log(convertToWords(123.45)); // Output: "একশত তেইশ দশমিক চার পাঁচ"
console.log(convertToTakaInWords(123.45)); // Output: "একশত তেইশ টাকা এবং পঁয়তাল্লিশ পয়সা"
console.log(convertToTakaInWords(123.45, false, true)); // "একশত তেইশ টাকা এবং পঁয়তাল্লিশ পয়সা মাত্র।"
console.log(convertToTakaInWords(123.45, true, true)); // "One hundred twenty-three taka and forty-five poisha only."
For detailed usage, refer to the documentation.
Explore the full documentation to learn about all available utilities and their usage:
We welcome contributions from the community! Whether you want to add new features, fix bugs, or improve documentation, your help is appreciated.
Learn how to contribute: Contributing Guide
This project is licensed under the MIT License. See the LICENSE file for details.
If you find this library useful, consider giving it a ⭐️ on GitHub. For questions or feedback, please open an issue.