/dhis2-uid

NodeJS library for generating DHIS2 UIDs

Primary LanguageJavaScript

dhis2-uid

Build Status NPM Version NPM Downloads

Small library for generating valid DHIS2 UIDs.

Installation

$ npm install dhis2-uid --save

Example usage

const {generateCode, generateCodes} = require('dhis2-uid');
console.log(generateCode());
console.log(generateCodes(10));

License

BSD-3-Clause