Comparing version 0.0.0 to 1.0.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3590
0
27