Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 953 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 953 Bytes

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