Nuclear Package Magnet

    national-id
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.1 • Public • Published

    NationalId

    This is an attempt to start a package that can validate national identification number across different countries and regions.

    Supported languages

    • norwegian
    • danish

    Install

    Yarn

    yarn add national-id

    Npm

    npm i national-id

    Usage

    import {Norwegian} from 'national-id'
     
    // usage through static implementation
    Norwegian.isValid('01065100394')
    // or class
    const n = new Norwegian('01065100394')
    n.isValid() 
    ...
    import {Danish} from 'national-id'
     
    // usage through static implementation
    Danish.isValid('0811115676')
    // or class
    const n = new Danish('0811115676')
    n.isValid() 
    ...

    Keywords

    none

    Install

    npm i national-id

    DownloadsWeekly Downloads

    118

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    33.7 kB

    Total Files

    44

    Last publish

    Collaborators

    • slem