Have ideas to improve npm?Join in the discussion! »

    validcq

    1.0.2 • Public • Published

    Validation des codes NIR - NIRPP - Numéro de sécurité sociale

    CI Script

    Validation des numéros de sécurité sociale, basé sur la définition wikipedia

    Parse and validate the french NIR, based on the wikipedia definition.

    Install

    $ npm install validcq
    

    Usage

    const { validate } = require('validCq');
     
    validate('255081416802538');
    // => true
     
    validate('255081416802539');
    // => false
     
    validate('2 55 08 14 168 025 38');
    // => true

    Options

    shouldClean - set this to false to become white-space and case sensitive (default is true)

    validate('2 55 08 14 168 025 38', { shouldClean: false });
    // => false
    validate('2 55 08 14 168 025 38', { shouldClean: true });
    // => true

    Install

    npm i validcq

    DownloadsWeekly Downloads

    617

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.47 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar