Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

random-uuid-v4

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-uuid-v4 - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

test.js

4

package.json
{
"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);
});
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc