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

sync-queue

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sync-queue - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

12

index.js

@@ -0,1 +1,8 @@

// Copyright 2014 Technical Machine, Inc.
//
// Licensed under the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>.
// This file may not be copied, modified, or distributed
// except according to those terms.
function queue() {

@@ -30,2 +37,7 @@

};
//Clearing queue
queue.clear = function(){
queue.length = 0;
queue.active = false;
};

@@ -32,0 +44,0 @@ return queue;

5

package.json
{
"name": "sync-queue",
"version": "0.0.1",
"version": "0.0.2",
"description": "Simple queue for completing tasks in series",

@@ -12,5 +12,6 @@ "main": "index.js",

{"name" : "Tim Cameron Ryan", "email" : "tim@technical.io" },
{"name" : "Jon McKay", "email" : "jon@technical.io" }
{"name" : "Jon McKay", "email" : "jon@technical.io" },
{"name" : "Carlos Martin", "email" : "pirumpi@gmail.com"}
],
"license": "MIT"
}

6

README.md

@@ -13,3 +13,3 @@ #Sync-Queue

queue.place(function one() {
console.log('I'm func one);
console.log("I'm func one");

@@ -23,3 +23,3 @@ setTimeout(function() {

queue.place(function two() {
console.log.bind(this, "I'm the last func.");
console.log("I'm the last func.");
queue.next();

@@ -30,2 +30,2 @@ });

## Description
Use `place` to put things in the queue. They will start being executed automatically. Call `next` when you want the thing you put in the queue is finished.
Use `place` to put things in the queue. They will start being executed automatically. Call `next` when you want the next thing in the queue to begin execution.
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