5.3.1 • Published 6 months ago
national-id v5.3.1
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()
...