Socket
Socket
Sign inDemoInstall

myanmar-nrc-tool

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    myanmar-nrc-tool

Myanmar NRC assert tool, used unicode


Version published
Weekly downloads
8
increased by700%
Maintainers
1
Install size
8.86 kB
Created
Weekly downloads
 

Readme

Source

NRCPrefix

Prefixer for Myanmar National Registration Card's Format

Match Formats

[State Number]\[District]([NAING/N])[Register No]

  • 12/OKM(N)123456
  • 12/OUKAMA(N)123456
  • 12/OKM(NAING)123456

Prefer formats

  • 12/OUKAMA(N)123456
  • 12/OUKAMA(NAING)123456
  • ၁၂/ဥကမ(နိုင်)၁၂၃၄၅၆

NOTE

Three english characters in district are not complete format and will not support some function. So you should be use six english characters for district.

Usage

Get format

var nrc = MMNRC("12/OuKaMa (NAING) 123456");

nrc.getFormat() // 12/OUKAMA(N)123456
nrc.getFormat("mm") // ၁၂/ဉကမ(နိုင်)၁၂၃၄၅၆

Test Equal

var nrc = MMNRC("12/OUKAMA (N) 123456");

nrc.isEqual('၁၂/ဥကမ(နိုင်)၁၂၃၄၅၆') // return true;

Get State name from nrc card

var nrc = MMNRC("14/PaPaNa(N)123456");

nrc.getState("mm") //ဧရာဝတီတိုင်း
nrc.getState() // Ayeyarwaddy

Keywords

FAQs

Last updated on 15 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc