
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
Belgian NRN (National Registry Number) utility functions.
npm install be-nrn
import { getAge } from 'be-nrn';
getAge('860814 000 00'); // => 32 (at time of writing)
NOTE: All NRN input strings are normalized
getAge(nrn: string, options): numberGet the age of a citizen's NRN.
getAge('860814 000 00'); // => 32 (at time of writing)
Age calculation is based on midnight in the Brussels timezone, regardless of the timezone in which the code is run.
comparisonDate: Date – get the age on a specific dategetBirthDate(nrn: string): DateGet the birth date of a citizen's NRN.
getBirthDate('860814 000 00'); // => 1986-08-13T22:00:00.000Z
The birth date's time is set to midnight in the Brussels timezone, regardless of the timezone in which the code is run.
isBiologicalFemale(nrn: string): booleanDetermine if the biological birth gender of a citizen's NRN is female.
isBiologicalFemale('860814 000 00'); // => true
isBiologicalMale(nrn: string): booleanDetermine if the biological birth gender of a citizen's NRN is male.
isBiologicalMale('860814 001 00'); // => true
isBirthDateKnown(nrn: string): booleanDetermine if the birthdate is known. Is is possible (eg. for migrated people) to have an unknown date of birth.
isBirthdateKnown('860814 001 00'); // => true
isBirthdateKnown('002000 001 00'); // => false
isBisNumber(nrn: string): booleanDetermine if an NRN number is also a BIS number.
isBisNumber('860814 001 00'); // => false
isBisNumber('862814 001 00'); // => true
isEqual(nrn1: string, nrn2: string): booleanCompare two NRN's for equality.
isEqual('860814 000 00', '86.08.14-000.00'); // => true
isGenderKnown(nrn: string): booleanDetermine if the gender is known. Is is possible (eg. for migrated people) to have an unknown gender.
isGenderKnown('860814 000 00'); // => true
isGenderKnown('862814 000 00'); // => false
isGenderKnown('864814 000 00'); // => true
isLegalAdult(nrn: string): booleanDetermine if a citizen is legal adult.
isLegalAdult('860814 000 00'); // => true
normalize(nrn: string): stringUsed internally for normalizing nrn strings. All we do is remove non-numeric characters.
normalize('86.08.14-000.84'); // => 86081400084
normalize('860814 000 84'); // => 86081400084
parse(nrn: string): NrnUsed internally for parsing nrn strings. The resulting object can be used as input for all other functions.
parse('86.08.14-000.84');
// => { birthDate: '860814', serial: '000', checksum: '84' }
FAQs
Belgian NRN (National Registry Number) utility functions
The npm package be-nrn receives a total of 5 weekly downloads. As such, be-nrn popularity was classified as not popular.
We found that be-nrn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.