Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remato/personal-code-to-birthday

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remato/personal-code-to-birthday

Converts personal identification codes from various countries into birthdate

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
66
increased by29.41%
Maintainers
0
Weekly downloads
 
Created
Source

Personal Code to Birthday

Build Codecov

Converts personal identification codes from various countries into birthdate.

Features

  • Automatic Birthdate Extraction: Effortlessly extracts birthdates from national ID codes.
  • Built-in Validation: Confirms personal code validity using checksum verification before returning a date.
  • Country-Agnostic: Automatically identifies and processes the country format, requiring no additional parameters.
  • Lightweight & Seamless Integration: Designed for easy integration into any project with minimal setup.

Limitations

  • Date Range Restriction: Only supports personal codes issued from 1900 to the present. Future-dated codes are not currently supported.

Installation

npm install @remato/personal-code-to-birthday

Usage

const birthday = personalCodeToBirthday('39309262855')

console.log(birthday) // outputs { day: 26, month: 9, year: 1993 }

Countries supported

  1. 🇺🇦 Ukraine
  2. 🇪🇪 Estonia
  3. 🇱🇻 Latvia
  4. 🇱🇹 Lithuania
  5. 🇵🇱 Poland
  6. 🇫🇮 Finland
  7. 🇸🇪 Sweden
  8. 🇳🇴 Norway
  9. 🇩🇰 Denmark
  10. 🇷🇴 Romania

Need support for a new country or have feedback? Create an issue.

FAQs

Package last updated on 25 Oct 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc