• Checks if the given value is a valid Norwegian national identity number.

    Parameters

    • idNumber: string

      social security number

    Returns boolean

    true for valid, and false for invalid ID number.

    import { validateNorwegianIdNumber } from 'norwegian-national-id-validator';
    const valid = validateNorwegianIdNumber(0000000000);