Skip to content

Andersos/fodselsnummer

Repository files navigation

fodselsnummer Build Status Coverage Status Code Climate

National identification number of Norway

Usage

fnr = require('fodselsnummer');

// Validates
fnr('11108900123');

// Generates valid fnr
fnr.generate(new Date());
fnr.generate('111089');

// Query for info
var fnr = new Fodselsnummer('11108900123');

fnr.getBirthDate();
fnr.getGender();

Rules

The rules are defined here https://lovdata.no/dokument/SF/forskrift/2007-11-09-1268/KAPITTEL_2

Publish

Update CHANGES.MD

$ npm version 
$ git push --tags origin master
$ npm publish

About

National identification number of Norway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published