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
- Host: GitHub
- URL: https://github.com/dhis2/dhis2-uid
- Owner: dhis2
- Created: 2017-10-03T10:57:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-31T06:48:55.000Z (over 5 years ago)
- Last Synced: 2025-01-01T19:26:42.355Z (6 months ago)
- Topics: dhis2, nodejs
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dhis2-uid
[](https://travis-ci.org/dhis2/dhis2-uid)
[](https://www.npmjs.com/package/dhis2-uid)
[](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