random-uuid-v4
Version:
A lightweight version 4 UUID generator.
36 lines (26 loc) • 901 B
Markdown
# random-uuid-v4
[](https://travis-ci.org/leahciMic/random-uuid-v4)
```sh
npm i random-uuid-v4
```
A lightweight version 4 UUID generator. The code was originally taken from a
[stackoverflow answer](http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript)
Thanks [broofa](http://stackoverflow.com/users/109538/broofa)!
# Usage
```js
var uuid = require('random-uuid-v4');
var uuidv4 = uuid();
```
# Changelog
* 0.0.8 - Make jest a dev dependency
* 0.0.7 - Fix package name
- Updated contributors
- Use Jest
- Travis badge
* 0.0.5 - Fix invalid uuids
- Add test
# Contributors
* [leahciMic](https://github.com/leahciMic)
* [ArtskydJ](https://github.com/ArtskydJ)
* [TehShrike](https://github.com/TehShrike)
* [saibotsivad](https://github.com/saibotsivad)