An open API service indexing awesome lists of open source software.

https://github.com/dhis2/dhis2-uid

NodeJS library for generating DHIS2 UIDs
https://github.com/dhis2/dhis2-uid

dhis2 nodejs

Last synced: 4 months ago
JSON representation

NodeJS library for generating DHIS2 UIDs

Awesome Lists containing this project

README

        

# dhis2-uid

[![Build Status](https://travis-ci.org/dhis2/dhis2-uid.svg?branch=master)](https://travis-ci.org/dhis2/dhis2-uid)
[![NPM Version](https://img.shields.io/npm/v/dhis2-uid.svg?style=flat)](https://www.npmjs.com/package/dhis2-uid)
[![NPM Downloads](https://img.shields.io/npm/dm/dhis2-uid.svg?style=flat)](https://www.npmjs.com/package/dhis2-uid)

Small library for generating valid DHIS2 UIDs.

## Installation

$ npm install dhis2-uid --save

## Example usage

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

## License

BSD-3-Clause