https://github.com/sandipmavani/unique_id_generator
https://github.com/sandipmavani/unique_id_generator
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sandipmavani/unique_id_generator
- Owner: sandipmavani
- License: mit
- Created: 2017-08-10T06:22:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-10T06:46:11.000Z (almost 8 years ago)
- Last Synced: 2025-02-13T00:09:51.260Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unique-id-generator
Utility to generate unique ID based on Date.now() and MD5## Why?
This function is meant to return an unique ID using the value of Date.now() and MD5, it ensures that the IDs are unique (from all other IDs generated by an instances of this module)## How to use it?
1.- Install it in your project:`npm install unique_id_generator --save`
2.- Require it:
`var generateID = require("unique_id_generator");`
3.- Use it:
```js
var id = generateID();
//generates something like 2efbf20b658ff47900ae5be496a4c328
```