random-uuid-v4
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "random-uuid-v4", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A lightweight version 4 UUID generator.", | ||
"main": "uuidv4.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "node test.js" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -1,8 +0,23 @@ | ||
uuid-v4 | ||
======= | ||
# uuid-v4 | ||
A lightweight version 4 UUID generator. This code was taken from a stackoverflow answer. | ||
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) | ||
All credit goes to broofa (http://stackoverflow.com/users/109538/broofa) | ||
Thanks [broofa](http://stackoverflow.com/users/109538/broofa)! | ||
http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | ||
# Usage | ||
```js | ||
var uuid = require('uuid-v4'); | ||
var uuidv4 = uuid(); | ||
``` | ||
# Changelog | ||
* 0.0.5 - Fix invalid uuids | ||
- Add test | ||
# Contributors | ||
* [leahciMic](https://github.com/leahciMic) | ||
* [ArtskydJ](https://github.com/ArtskydJ) |
@@ -19,4 +19,4 @@ /** | ||
d = Math.floor(d/16); | ||
return (c=='x' ? r : (r&0x7|0x8)).toString(16); | ||
return (c=='x' ? r : (r&0x3|0x8)).toString(16); | ||
}); | ||
}; |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
1750
4
26
2
24