sa-vehicle-reg-num

    1.0.1 • Public • Published

    Saudi Arabia Vehicle Registration Number

    This package made to solve the issue of converting plate number from English to Arabic letters and digits.

    Installing

    Installing:

    $ npm i --save sa-vehicle-reg-num

    Usage

    Letters

    const saVRN = require('sa-vehicle-reg-num');
    console.log(getArLetters('هدد١٢٣٤'));
    // returns هـ د د
     
    console.log(getArLetters('1234ddh'));
    // returns هـ د د
     
    console.log(getEnLetters('1234ddh'));
    // returns D D H
     
    console.log(getEnLetters('هدد١٢٣٤'));
    // returns D D H

    Digits

    const saVRN = require('sa-vehicle-reg-num');
    console.log(getArNumbers('1234ddh'));
    // returns ١ ٢ ٣ ٤
     
    console.log(getArNumbers('هدد١٢٣٤'));
    // returns ١ ٢ ٣ ٤
     
    console.log(getEnNumbers('1234ddh'));
    // returns 1 2 3 4
     
    console.log(getEnNumbers('هدد١٢٣٤'));
    // returns 1 2 3 4

    Install

    npm i sa-vehicle-reg-num

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.18 kB

    Total Files

    3

    Last publish

    Collaborators

    • ralmarri12