1.0.2 • Published 6 years ago

cmc7-validador v1.0.2

Weekly downloads
20
License
GPLv3
Repository
github
Last release
6 years ago

cmc7-validador@1.0.2

Validador de CM7 em JavaScript.

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install cmc7-validador --save

This package is provided in these module formats:

  • UMD

TL;DR

const CMC7Validator = require('cmc7-validator');
new CMC7Validator('450445043466147665081657326823').isValid(); // returns true
new CMC7Validator('45044504 34661476650816 57326823').isValid(); // returns true
new CMC7Validator('Oi! Oi! Oi!').isValid(); // returns false

Dependencies

  • checkdigit

Dev Dependencies

  • buble: The blazing fast, batteries-included ES2015 compiler
  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • eslint-config-airbnb-base: Airbnb's base JS ESLint config, following our styleguide
  • eslint-plugin-import: Import with sanity.
  • mocha: simple, flexible, fun test framework
  • eslint
  • rollup
  • rollup-plugin-buble
  • rollup-plugin-commonjs
  • rollup-plugin-node-resolve

License

GPLv3