mz-cpr-validate
v0.0.3
Published
Denmark CPR validation module
Downloads
2
Maintainers
Readme
install
npm i mz-cpr-validate
Use in Vanilla JavaScript apps
- var cpr = require('./index');
- Example :
const isValidCpr = cpr.validate('1111111111'); // true const isValidCpr = cpr.validate('4111111111'); // false
Use in Angular 2+ apps
- import CPR from '../../../node_modules/mz-cpr-validate';
constructor() { const validate = CPR.validate('1111111111'); console.log(validate); // true }
Last updates
- Readme file added 2018-11-02