Wondering what’s next for npm?Check out our public roadmap! »

    gusoma

    1.0.3 • Public • Published

    gusoma

    Build Status npm Dependency Status npm Open Source Love Open Source Love

    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

    Install

    npm i gusoma

    DownloadsWeekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    13.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar