siret
v1.0.1
Published
A simple validation module for french SIRET and SIREN numbers
Downloads
17,907
Maintainers
Readme
SIRET
SIRET is a simple validation module for french SIRET and SIREN numbers
Installation
$ npm install siret
Usage
var siret = require('siret');
console.log(siret.isSIRET('79465211500013'));
// Return true : this is a SIRET number
console.log(siret.isSIREN('794652115'));
// Return true : this is a SIREN number
console.log(siret.isSIRET('01234567890123'));
// Return false : this is NOT a SIRET number
console.log(siret.isSIREN('012345678'));
// Return false : : this is NOT a SIREN number