no-data-validator
v1.0.1
Published
A validator for norwegian birthnumbers, accountnumbers, kidnumbers and org.numbers
Downloads
137
Maintainers
Readme
no-data-validator
npm-module for validation of
- Fødselsnummer
- Kontonummer
- org.nummer
- kidnummer
The code is based on this article and published as a node-module. https://www.miles.no/blogg/tema/teknisk/validering-av-norske-data
Usage
npm install no-data-validator
In code: First require no-data-validator
const validator = require('no-data-validator');
Validate birth number
validator.birthNumber('27121798935');
Account number
validator.accountNumber('1234.56.78911');
validator.accountNumber('12345678911');
Kid number
validator.kidNumber('2707841373001170014');
Org. Number
validator.organizationNumber(914588200);