Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@indexsoftware/check-eleven

indexsoftware21MIT1.0.8TypeScript support: included

Checks if a Dutch government issued service number is valid

Nederland, Netherlands, Index, Software, BSN, Persoons, Persoonsgegevens, Validatie, Validation, Burger, Service, Nummer, Gemeente, Elf, Proef

readme

Check-eleven

Check-eleven is a small, dependency-less package that checks if a Dutch government issued service number is valid.

Installation

Use the package manager npm to install check-eleven.

npm install --save @indexsoftware/check-eleven

Usage

ES6

import checkEleven from '@indexsoftware/check-eleven';
import { check } from '@indexsoftware/check-eleven';

CommonJs

const checkEleven = require('@indexsoftware/check-eleven');
const { check } = require('@indexsoftware/check-eleven');

After importing, usage is simple

const result = checkEleven.check(178239812);

const result = check(178239812);

Testing

Test coverage is provided by Jest.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT