digits-to-swahili

1.1.2 • Public • Published

Build Status

Build Status NPM Stats

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

  1. In the root directory open test/converter.js
  2. Edit the const's of Test Parameters to your own digits
  3. Edit the Expected output to the same digits in expected swahili language
  4. Now run npm run test

For Issues

Also Feel free to contribute by creating a PR into the repository

Licence

The MIT License (MIT)

Package Sidebar

Install

npm i digits-to-swahili

Weekly Downloads

4

Version

1.1.2

License

MIT

Unpacked Size

8.32 kB

Total Files

14

Last publish

Collaborators

  • shemmjunior