New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

qbox

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qbox

JQuery like queue solution for NodeJs

  • 0.1.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3.8K
decreased by-17.06%
Maintainers
1
Weekly downloads
 
Created
Source

QBox - Quick Flow Control library for NodeJS

Introduction

There are whole a bunch of NodeJS Flow Control libraries exists. In order to use most of them you need change the way how you program. Or learn some new syntax.

Qbox is meant for people who loves to code using their natural style but also to control the flow of the code as they wish.

Install

npm install qbox

Usage

Complete After Something happens

I need to do some tasks after I connect've connect with the database

var db = qbox.create();

mydatabase.connect(function() {
	$.start();
});

$.ready(function() {
	//do something
});

//at somewhere else in your programme
$.ready(function() {
	//do some other stuff
});

Complete After Some Few things happens

I need to do some task after I'm connected to database and registry

var go = qbox.ready(['db', 'registry']);

mydatabase.connect(function() { go.tick('db'); });
registry.connect(function() { go.tick('db'); });

go.ready(function() {
	//do something
});

//timeout after 5 seconds
go.timeout(5000, function() {
	//show the errors
});

Browse Tests for more usage patterns

FAQs

Package last updated on 21 Sep 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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