Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nic-no-sri-lanka

This module is for getting information about a person using a NIC number in Sri Lanka

sri lanka, nic, validate, birthday, npm, gender

readme

Sri Lankan NIC Number check and get details

Modules that you can use in here

  1. Validated the NIC Number
  2. Get the birth year
  3. Check the gender

This module is worling with both old and new NIC numbers in Sri Lanka

Usage

const { validateNumber, getBirthYear, getGender } = require('nic-no-sri-lanka');

New NIC Number

  • Validated the NIC Number - validateNumber("200027666980")
  • Get the birth year - getBirthYear("200027666980")
  • Check the gender - getGender("200027666980")

Old NIC Number

  • Validated the NIC Number - validateNumber("641042757V")
  • Get the birth year - getBirthYear("641042757V")
  • Check the gender - getGender("641042757V")