js-uuid
v0.0.6
Published
A browser wrapper for a rigorous implementation of RFC4122 (v1 and v4) UUIDs.
Downloads
3,236
Maintainers
Readme
js-uuid
js-uuid is an browser wrapper for Robert Kieffer's node-uuid, which provides simple, fast generation of RFC4122 UUIDS. Based on munkychop's fork angular-uuid.
Features
- Generate RFC4122 version 1 or version 4 UUIDs
- Cryptographically strong random # generation on supporting platforms
- Tiny file size when minified.
Installation
If using CommonJS then simply require js-uuid as per usual:
npm install --save js-uuid
require("js-uuid");
// ES6
import uuid from 'js-uuid';
Otherwise use a regular script tag:
<script src="js-uuid.js"></script>
<script>uuid.v4();</script>
Documentation
Full documentation is available via the original project's readme: https://github.com/broofa/node-uuid/blob/master/README.md