siret

A simple validation module for french SIRET and SIREN numbers

  • siret

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
siret
521.0.19 years ago9 years agoMinified + gzip package size for siret in KB

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

MIT Licensed