2.1.0 • Published 5 months ago

numero-securitesociale v2.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 months ago

numero-securitesociale

NpmLicense Build Status

npm.io

Parseur de numéro de sécurité sociale (ou numéro d'inscription au répertoire des personnes physiques)

Setup

npm i -SE numero-securitesociale or Yarn yarn add numero-securitesociale

Usage

Include package

var NIR = require('numero-securitesociale');

Parse

NIR.parse(269054958815780); // { gender: 'F', foreigner: false, yearBirth: '69', monthBirth: '05', departement: '49', town: '588', birthOrder: '157', key: '80' }

Description :

  • gender : string, "F" or "M", for female or male
  • foreigner : boolean, is the person a foreigner
  • yearBirth : string, the year of birth, don't care about the century
  • monthBirth : string, the month of birth
  • department : string, the department where the person is borned. If it's 99, it borns abroad
  • town : string, the code of the town where the person is borned. If it's born abroad, the code of the country
  • birthOrder : string, the order of born in the month, in the department and in the town
  • key : string, a sort of checksum for all

License

MIT

2.1.0

5 months ago

2.0.0

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago