@indexsoftware/check-eleven
v1.0.8
Published
Checks if a Dutch government issued service number is valid
Downloads
44
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.