Utilities
Examples for mm-nrc utilities.
Check if string is English NRC pattern
import { pattern } from 'mm-nrc';
const engNrcPattern = pattern.en;
console.log(
'Test 1:',
engNrcPattern.test('12/TAMANA(N)112233') // true
)
console.log(
'Test 2:',
engNrcPattern.test('12/TAMA(N)1133') // false
)
console.log(
'Test 3:',
engNrcPattern.test('αα/ααα(ααα―ααΊ)112233') // false
)# OUTPUT
#
# Test 1: true
# Test 2: false
# Test 3: falseCheck if string is Myanmar NRC pattern
Convert English NRC string to Myanmar NRC string
Convert Myanmar NRC string to English NRC string
De-structure NRC data from the NRC string
Last updated