National identification number of Norway
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();
The rules are defined here https://lovdata.no/dokument/SF/forskrift/2007-11-09-1268/KAPITTEL_2
Update CHANGES.MD
$ npm version
$ git push --tags origin master
$ npm publish