CLI for checking if input is a valid national identification number of Norway
From npm
$ npm i is-valid-fodselsnummer-cli -g
From GitHub
$ git clone [email protected]:zrrrzzt/is-valid-fodselsnummer-cli.git
cd into directory an run the setup script
$ npm run setup
Pass in fødselsnummer
$ is-valid-fodselsnummer <fodselsnummer>
Pass in fødselsnummer and -t or --type to identify type of number. Returns F if regular and D if D-number Returns false if invalid
$ is-valid-fodselsnummer <fodselsnummer> -t
To see version
$ is-valid-fodselsnummer -v
To see help
$ is-valid-fodselsnummer -h
- is-valid-fodselsnummer API for this module