nic-no-sri-lanka
Version:
This module is for getting information about a person using a NIC number in Sri Lanka
28 lines (22 loc) • 833 B
Markdown
# Sri Lankan NIC Number check and get details
## Modules that you can use in here
<ol>
<li> Validated the NIC Number </li>
<li> Get the birth year </li>
<li> Check the gender </li>
</ol>
### This module is worling with both old and new NIC numbers in Sri Lanka
## Usage
#### const { validateNumber, getBirthYear, getGender } = require('nic-no-sri-lanka');
<b> New NIC Number </b>
<ul>
<li> Validated the NIC Number - validateNumber("200027666980")</li>
<li> Get the birth year - getBirthYear("200027666980") </li>
<li> Check the gender - getGender("200027666980") </li>
</ul>
<b> Old NIC Number </b>
<ul>
<li> Validated the NIC Number - validateNumber("641042757V")</li>
<li> Get the birth year - getBirthYear("641042757V") </li>
<li> Check the gender - getGender("641042757V") </li>
</ul>