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

sequential-ids

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequential-ids - npm Package Compare versions

Comparing version 0.0.0-alpha.4.0 to 0.0.0-alpha.4.1

4

package.json
{
"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 @@

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