https://github.com/gamtiq/iden
Unique identifier generator
https://github.com/gamtiq/iden
create generate generator id identifier random uid unique unique-id uuid
Last synced: 2 months ago
JSON representation
Unique identifier generator
- Host: GitHub
- URL: https://github.com/gamtiq/iden
- Owner: gamtiq
- License: mit
- Created: 2016-11-16T21:04:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T21:13:44.000Z (about 9 years ago)
- Last Synced: 2025-02-01T22:06:25.588Z (over 1 year ago)
- Topics: create, generate, generator, id, identifier, random, uid, unique, unique-id, uuid
- Language: JavaScript
- Size: 545 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
Unique identifier generator.
[](http://badge.fury.io/js/iden)
[](http://travis-ci.org/gamtiq/iden)
[](http://gruntjs.com/)
* [Usage](#usage)
* [Examples](#examples)
* [API](#api)
* [Inspiration](#inspiration)
* [Contributing](#contributing)
* [License](#license)
## Installation
### Node
npm install iden
### [Bower](http://bower.io)
bower install iden
### AMD, <script>
Use `dist/iden.js` or `dist/iden.min.js` (minified version).
### ECMAScript 6
```js
import * as iden from 'iden';
```
### Node
```js
var iden = require("iden");
```
### [Duo](http://duojs.org)
```js
var iden = require("gamtiq/iden");
```
### AMD
```js
define(["path/to/dist/iden.js"], function(iden) {
...
});
```
### Bower, <script>
```html
// iden is available via iden field of window object
...
```
```js
iden.getUuid(); // uuid in form of xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
```
### getUuid([settings: Object]): String
Generate unique identifier (UUID as described in RFC 4122 version 4).
See `doc` folder for details.
* [http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript](http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript)
* [leahciMic/uuid-v4](https://github.com/leahciMic/uuid-v4/blob/master/uuidv4.js)
* [broofa/node-uuid](https://github.com/broofa/node-uuid/blob/master/uuid.js)
* [makeable/uuid-v4.js](https://github.com/makeable/uuid-v4.js/blob/master/uuid-v4.js)
## Contributing [↑](#start)
In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality.
Lint and test your code using [Grunt](http://gruntjs.com/).
## License [↑](#start)
Copyright (c) 2016 Denis Sikuler
Licensed under the MIT license.