Socket
Socket
Sign inDemoInstall

uuid.v4

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 1.0.0

6

index.js

@@ -22,10 +22,10 @@ /*

const byte2Hex = []
const byte2hex = []
for (let i = 0; i < 256; ++i) {
byte2Hex[i] = (i + 0x100).toString(16).substr(1)
byte2hex[i] = (i + 0x100).toString(16).substr(1)
}
function bytes2Uuid (buf) {
const b = byte2Hex
let b = byte2hex

@@ -32,0 +32,0 @@ return b[buf[0]] +

{
"name": "uuid.v4",
"version": "0.0.0",
"version": "1.0.0",
"description": "Generate a v4 UUID",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,8 +14,11 @@ # uuid.v4

### api
`const uuidV4 = require('uuid.v4')`
### example
```js
const uuidV4 = require('uuid.v4')
uuidV4()
// should return a valid v4 UUID
```

@@ -22,0 +25,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc