gusoma
v1.0.3
Published
This is a simple package that converts numbers in kinyarwanda (Rwandan native language)
Downloads
4
Maintainers
Readme
gusoma
This is a simple package that converts numbers in Rwandan native language (Ikinyarwanda)
Install
npm install gusoma
or
yarn add gusoma
Example
const { soma } = require("gusoma");
console.log(soma(11)); // 'cumi na rimwe'
console.log(soma(1110)); // 'igihumbi n'ijana n'icumi'
A very complicated number 😂
const { soma } = require("gusoma");
console.log(soma(999999999999)); // "miliyari magana icyenda na mirongo icyenda n'icyenda na miliyoni magana icyenda na mirongo icyenda n'icyenda n'ibihumbi magana icyenda na mirongo icyenda n'icyenda na magana icyenda na mirongo icyenda n'icyenda"
Ones (Ibinyabumwe)
const { soma } = require("gusoma");
console.log(soma(5)); // 'gatanu'
Tens (Ibinyacumi)
const { soma } = require("gusoma");
console.log(soma(18)); // "cumi n'umunani"
Hundreds (Ibinyejana)
const { soma } = require("gusoma");
console.log(soma(116)); // 'ijana na cumi na gatandatu'
Thousands (Ibinyagihumbi)
const { soma } = require("gusoma");
console.log(soma(1195)); // "igihumbi n'ijana na mirongo icyenda na gatanu"
Millions (Amamiliyoni)
const { soma } = require("gusoma");
console.log(soma(43000000)); // "miliyoni mirongo ine n'eshatu"
Billions (Amamiliyari)
const { soma } = require("gusoma");
console.log(soma(6500000000)); // 'miliyari esheshatu na miliyoni magana atanu'
Contribution
Please before making a PR, read first this Contributing Guideline
License
MIT
Author
Igwaneza Bruce