open-index/open-npm huggingface dataset:
npm package: @ondkloss/kid-util
Description: Module for making and verifying KID numbers
Author: Halvor Holsten Strand
Latest version: 1.0.3
Deprecated: use unscoped kid-util instead

# KID util

Simple utils to generate and verify KID numbers with either MOD10 or MOD11.

## Installation

To install from NPM as a package in your environment:

    npm install @ondkloss/kid-util

## Code usage from installation

Example code usages after installation:

    > const kid = require('@ondkloss/kid-util');
    undefined
    > kid.make('1234');
    '12344'
    > kid.make('1234', 'MOD11');
    '12343'
    > kid.verify('12344');
    true
    > kid.verify('12343', 'MOD11');
    true

## Testing from source

To run the tests:

    mocha

Or:

    npm test

## Distribution

The distribution was created by the following commands:

    npm publish --access public

## Notes

This repo is a JavaScript port of my Python [kid-util](https://github.com/Ondkloss/kid-util) repo.