idnumbers
    Preparing search index...

    Class NationalID

    Norway National Identity Number (Fødselsnummer) format Format: DDMMYYIIIKK https://en.wikipedia.org/wiki/National_identification_number#Norway https://en.wikipedia.org/wiki/National_identity_number_(Norway)

    NOTE: D-nummer support is a documented deviation from the Python idnumbers source library, which currently rejects D-nummer inputs (Python's parse() calls date(yyyy, mm, dd) directly with the raw dd, raising ValueError when dd >= 32). Issue #29 explicitly requires valid D-nummer validation, so this module accepts DD values 41–71 (the D-nummer range) and subtracts 40 from the day before constructing the calendar date. The checksum algorithm and all other behaviors remain identical to the Python implementation. The Python library should add the same logic to restore parity.

    Implements

    Index
    METADATA: IdMetadata = ...
    • Norway uses two check digits - return the last one for compatibility

      Parameters

      • idNumber: string

      Returns boolean

    • Parse Norway national ID number

      Parameters

      • idNumber: string

      Returns NationalIdParseResult | null

    • Validate the Norway ID number

      Parameters

      • idNumber: string

      Returns boolean