JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q56834F
  • License MIT

Parse Myanmar numerals into Arabic numerals, Numbers, and Dates

Package Exports

  • myanmar-numbers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (myanmar-numbers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

myanmar.numbers.js

Simple JavaScript library to convert Myanmar/Burmese and Shan numerals into Arabic numerals (0-9).

Does some parsing to return Numbers and Dates when possible.

You may need special fonts to see Myanmar and Shan numbers.

Usage

myanmarNumbers("၈၀");
> 80

myanmarNumbers("၅၂ West Road");
> "52 West Road"

myanmarNumbers("၂.၄.၂၀၁၀");
> Fri Apr 02 2010 00:00:00

Node.js

npm install myanmar-numbers
var myanmarNumbers = require("myanmar-numbers").myanmarNumbers;
myanmarNumbers("၅၂ West Road");

License

MIT License