digits-to-swahili
v1.1.2
Published
This package converts numbers into Kiswahili words
Downloads
26
Maintainers
Readme
Build Status
Digits to Swahili
A Node package to convert digits to swahili words based on Standard commonjs
Installation
npm i digits-to-swahili
Usage
const { toSwahili } = require('digits-to-swahili');
toSwahili(500) // Mia tano
import { toSwahili } from 'digits-to-swahili';
toSwahili(200) // Mia mbili
Testing
If you want to test the package, download this repository and install dependencies using npm i
or npm install
Test is done using mocha.js and here are the steps to run tests
- In the root directory open test/converter.js
- Edit the const's of Test Parameters to your own digits
- Edit the Expected output to the same digits in expected swahili language
- Now run
npm run test
For Issues
Also Feel free to contribute by creating a PR into the repository
Licence
The MIT License (MIT)