Skip to content
A simple module to convert Arabic numerals to Myanmar numerals
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
.zuul.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

myanmar-numeral Build Status

A simple module to conver Arabic numerals to Myanmar numerals

Usage

npm i myanmar-numeral --save to install.

var mn = require('./');
var test = require('tape');

test('myanmar numeral test', function (t) {
  t.plan(4);

  t.equal(mn(0), '');
  t.equal(mn(1), '');
  t.equal(mn(2), '');
  t.equal(mn(1234567890), '၁၂၃၄၅၆၇၈၉၀')

});

https://en.wikipedia.org/wiki/Burmese_numerals

var NUMBERS_MY = ['', '', '', '', '', '', '', '', '', ''];
var NUMBERS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];

License

MIT

You can’t perform that action at this time.