1.0.2 • Published 8 years ago
nir_validate v1.0.2
Validation API for the french NIR
Parse and validate the french NIR, based on the wikipedia definition.
Validation des codes NIR - NIRPP - Numéro de sécurité social
Install
$ npm install nir_validateUsage
const validate = require('nir_validate');
validate('255081416802538');
// => true
validate('255081416802539');
// => false
validate('2 55 08 14 168 025 38');
// => trueOptions
- shouldClean - set this to
falseto become white-space and case sensitive
validate('2 55 08 14 168 025 38', {shoudlClean: false});
// => false