A simple module to get information such as gender and birthday by providing Sri Lanka National Identity Card. This module does support new NIC Number format which was issues from 1st of January 2016.
npm install nic-info// ORyarn add nic-info
var nicInfo = nicInfo;var useData = ;
which should return an object like below:
gender:type: 'M'label: 'Male'birthday:year: 1985month: 11 // 0 baseddate: 5momentjsObj:
This will lint your code first then it will run unit tests
Other useful commands
yarn lint- lint your code
yarn lintfix- lint your code and fix common issues
yarn testonly- run test cases
test-watch- run test cases in watch mode
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
If you find any please raise an Issue. Pull requests are welcome.
- 0.1.0 Initial release