Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 929 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 929 Bytes

Build Status Coverage Status js-standard-style

birthdate-from-id

Extract date of birth from personal ID number (Norway).

It supports fødselsnummer, D-nummer and VGO-nummer

Usage

const birthdateFromId = require('birthdate-from-id')
const fid = '01010750160'
const did = '41085801188'
const vid = '41085899108'

console.log(birthdateFromId(fid)) //=> 2007-01-01
console.log(birthdateFromId(did)) //=> 1958-08-01
console.log(birthdateFromId(vid)) //=> 1958-08-01

License

MIT