Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.05 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.05 KB

js-standard-style

is-valid-fodselsnummer-cli

CLI for checking if input is a valid national identification number of Norway

Installation

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

Usage

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

Related

License

MIT