Socket
Socket
Sign inDemoInstall

birthdate-from-id

Package Overview
Dependencies
0
Maintainers
3
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
10
increased by233.33%
Maintainers
3
Install size
6.11 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

FAQs

Last updated on 30 Oct 2020

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