mz-cpr-validate

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i mz-cpr-validate

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

20.4 kB

Total Files

10

Last publish

Collaborators

  • morteza.zakeri