0.0.3 • Published 6 years ago

mz-cpr-validate v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

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