Skip to content

Repository containing the helper function to validate a Belgian INSZ

License

Notifications You must be signed in to change notification settings

SimonJang/validate-insz

Repository files navigation

validate-insz Build Status

Validate Belgian INSZ numbers

Install

$ npm install validate-insz

Usage

const validateInsz = require('validate-insz');

validateInsz('78.05.20-101.02');
//=> true

validateInsz('78052010102');
//=> true

validateInsz('78.05.20-101.99');
//=> false

validateInsz('78052010199');
//=> false

API

validateInsz(input)

input

Type: string

INSZ number to be validated. This can be formatted or just the sequence of numbers.

License

MIT © Simon Jang

About

Repository containing the helper function to validate a Belgian INSZ

Resources

License

Stars

Watchers

Forks

Packages

No packages published