iden
Unique identifier generator.
Installation
Node
npm install iden
Bower
bower install iden
AMD, <script>
Use dist/iden.js
or dist/iden.min.js
(minified version).
↑
UsageECMAScript 6
;
Node
var iden = ;
Duo
var iden = ;
AMD
;
Bower, <script>
<!-- Use bower_components/iden/dist/iden.js if the library was installed by Bower -->
↑
Examplesiden; // uuid in form of xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
↑
APIgetUuid([settings: Object]): String
Generate unique identifier (UUID as described in RFC 4122 version 4).
See doc
folder for details.
↑
Inspiration- http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
- leahciMic/uuid-v4
- broofa/node-uuid
- makeable/uuid-v4.js
↑
ContributingIn 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.
↑
LicenseCopyright (c) 2016 Denis Sikuler
Licensed under the MIT license.