Skip to content

A simple node.js validation module for french SIRET and SIREN numbers

Notifications You must be signed in to change notification settings

steevelefort/siret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple node.js validation module for french SIRET and SIREN numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published