sl-nic
v1.0.1
Published
From this package you can extract details from National Identity Card provided by the Government of Sri Lanka
Downloads
38
Readme
Welcome to Sl-NIC
This package simply extract basic information from any given National Identity Card (NIC) issued by the Government of Sri Lanka.
Usage
Installation
npm i sl-nic
Implementation
const nic = require('sl-nic')
// Will return an Object
const details = nic('YOUR NIC NO')
Output
Valid NIC
{
success: true,
message: 'Success',
data: { gender: 'Male', dob: 'yyyy/mm/dd', type: 'Old' }
}
Invalid NIC
{ success: false, message: 'Invalid NIC' }
Attributes
success: boolean
Valid NIC ➡ true Invalid NIC ➡ false
message: string The status of the request
data: object Following are the | | Description | Return (string) |--|--|--| | gender | Gender of the person | Male , Female | | dob | Date of Birth | yyyy/mm/dd | | type | Type of NIC | Old , New |
Version Info
Version : 1.0.1 Released Date : 31st Aug 2021
Reference
- This code is build according to the details provided at Wikipedia , accessed date 31st Aug 2021