Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "uuid-int", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "uuid-int for nodejs", | ||
@@ -5,0 +5,0 @@ "main": "addon.js", |
# uuid-int | ||
uuid-int for nodejs | ||
## Quick Start | ||
Install | ||
``` | ||
npm install --save uuid-int | ||
``` | ||
Use | ||
``` | ||
const UUID = require('uuid-int'); | ||
// number 0 <= id <=511 | ||
const id = 0; | ||
const generator = UUID(id); | ||
const uuid = generator.uuid(); | ||
console.log(uuid); // 3270411116609537 | ||
``` |
@@ -21,7 +21,7 @@ # uuid-int | ||
// 使用id初始化发号器 | ||
const one = UUID(id); | ||
// 使用id初始化 | ||
const generator = UUID(id); | ||
// 生成 | ||
const uuid = one.uuid(); | ||
const uuid = generator.uuid(); | ||
console.log(uuid); // 3270411116609537 | ||
@@ -28,0 +28,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
6965
26