Skip to content

A simple module to convert Arabic numerals to Myanmar numerals

License

Notifications You must be signed in to change notification settings

fraserxu/myanmar-numeral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple module to convert Arabic numerals to Myanmar numerals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published