cmc7-validator
v1.0.7
Published
A deadly simple library to validate CMC7
Downloads
38
Readme
cmc7-validator
A deadly simple library to validate CMC7.
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install cmc7-validator --save
This package is provided in these module formats:
- UMD
TL;DR
import CMC7Validator from 'cmc7-validator';
new CMC7Validator('450445043466147665081657326823').isValid(); // returns true
new CMC7Validator('45044504 34661476650816 57326823').isValid(); // returns true
new CMC7Validator('Oi! Oi! Oi!').isValid(); // returns false