Socket
Socket
Sign inDemoInstall

birthdate-from-id

Package Overview
Dependencies
0
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    birthdate-from-id

Extract date of birth from personal ID number


Version published
Weekly downloads
1
decreased by-50%
Maintainers
4
Install size
6.91 kB
Created
Weekly downloads
 

Readme

Source

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

Robohash image of birthdate-from-id

FAQs

Last updated on 07 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc