sequential-ids
Advanced tools
Comparing version 0.0.0-alpha.4.0 to 0.0.0-alpha.4.1
{ | ||
"name": "sequential-ids", | ||
"version": "0.0.0-alpha.4.0", | ||
"version": "0.0.0-alpha.4.1", | ||
"description": "centralized generation of sequential, human-readable ids", | ||
@@ -25,3 +25,3 @@ "homepage": "https://github.com/forfuture-dev/node-sequential-ids", | ||
"devDependencies": { | ||
"mocha": "latest" | ||
"mocha": "1.21.4" | ||
}, | ||
@@ -28,0 +28,0 @@ "scripts": { |
@@ -13,5 +13,5 @@ | ||
|-------|-----:| | ||
|version|0.0.0-alpha.4.0| | ||
|version|0.0.0-alpha.4.1| | ||
|dependencies|none| | ||
|last updated|2nd Oct, 2014| | ||
|last updated|4th Oct, 2014| | ||
@@ -46,3 +46,3 @@ ## installation | ||
var accessor = new sequential.Accessor(); | ||
accessor.next(function(id) { | ||
accessor.next(function(err, id) { | ||
console.log("new id: %s", id); // => AAB - 002 | ||
@@ -99,11 +99,8 @@ }); | ||
* `Generator#start()` | ||
* starts the generator. If no Error is thrown, the generator will be ready for Accessors. | ||
* `Generator#generate()` | ||
* generates a new id. The new id is returned immediately. | ||
* `Generator#stop()` | ||
* stops the generator. No more ids will be given to Accessors. | ||
@@ -110,0 +107,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
12356
151