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

taskgroup

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taskgroup - npm Package Compare versions

Comparing version 3.2.3 to 3.2.4

History.md

6

cyclic.js

@@ -0,7 +1,9 @@

// v1.3.0 October 26, 2013
// https://github.com/bevry/base
if ( require('fs').existsSync('.git') ) {
require('child_process').spawn(
'npm',
process.platform.indexOf('win') === 0 ? process.execPath.replace('node.exe', 'npm.cmd') : 'npm',
['install', '--force', require('./package.json').name],
{env:process.env, cwd:process.cwd(), stdio:'inherit'}
);
).on('error', console.log).on('close', console.log);
}

@@ -1,6 +0,9 @@

(The MIT License)
Copyright © 2013+ [Bevry Pty Ltd](http://bevry.me) <us@bevry.me>
Copyright © 2011-2012 [Benjamin Lupton](http://balupton.com) <b@lupton.cc>
<!-- LICENSEFILE/ -->
# License
Copyright &copy; Benjamin Lupton <b@lupton.cc>
## The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@@ -11,1 +14,5 @@

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<!-- /LICENSEFILE -->
// Generated by CoffeeScript 1.6.3
var EventEmitter, Task, TaskGroup, ambi, domain, events,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__slice = [].slice,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
(function() {
var EventEmitter, Task, TaskGroup, ambi, domain, events,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__slice = [].slice,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
ambi = require('ambi');
ambi = require('ambi');
events = typeof window !== "undefined" && window !== null ? require('events-browser') : require('events');
events = typeof window !== "undefined" && window !== null ? require('events-browser') : require('events');
domain = typeof window !== "undefined" && window !== null ? require('domain-browser') : require('domain');
domain = typeof window !== "undefined" && window !== null ? require('domain-browser') : require('domain');
EventEmitter = events.EventEmitter;
EventEmitter = events.EventEmitter;
Task = (function(_super) {
__extends(Task, _super);
Task = (function(_super) {
__extends(Task, _super);
Task.prototype.type = 'task';
Task.prototype.type = 'task';
Task.prototype.result = null;
Task.prototype.result = null;
Task.prototype.running = false;
Task.prototype.running = false;
Task.prototype.completed = false;
Task.prototype.completed = false;
Task.prototype.parent = null;
Task.prototype.parent = null;
Task.prototype.taskDomain = null;
Task.prototype.taskDomain = null;
Task.prototype.name = null;
Task.prototype.name = null;
Task.prototype.method = null;
Task.prototype.method = null;
Task.prototype.args = null;
Task.prototype.args = null;
function Task() {
var args, method, name;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
Task.__super__.constructor.apply(this, arguments);
name = method = null;
if (args.length) {
if (args.length === 2) {
name = args[0], method = args[1];
} else if (args.length === 1) {
method = args[0];
function Task() {
var args, method, name;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
Task.__super__.constructor.apply(this, arguments);
name = method = null;
if (args.length) {
if (args.length === 2) {
name = args[0], method = args[1];
} else if (args.length === 1) {
method = args[0];
}
}
this.setConfig({
name: name,
method: method
});
this;
}
this.setConfig({
name: name,
method: method
});
this;
}
Task.prototype.setConfig = function(opts) {
var key, value;
if (opts == null) {
opts = {};
}
for (key in opts) {
if (!__hasProp.call(opts, key)) continue;
value = opts[key];
this[key] = value;
}
return this;
};
Task.prototype.setConfig = function(opts) {
var key, value;
if (opts == null) {
opts = {};
}
for (key in opts) {
if (!__hasProp.call(opts, key)) continue;
value = opts[key];
this[key] = value;
}
return this;
};
Task.prototype.reset = function() {
this.completed = false;
this.running = false;
this.result = null;
return this;
};
Task.prototype.reset = function() {
this.completed = false;
this.running = false;
this.result = null;
return this;
};
Task.prototype.uncaughtExceptionCallback = function() {
var args, err;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
err = args[0];
if (!this.completed) {
this.complete(args);
}
this.emit('error', err);
return this;
};
Task.prototype.completionCallback = function() {
var args, err;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (!this.completed) {
this.complete(args);
this.emit.apply(this, ['complete'].concat(__slice.call(this.result)));
} else {
err = new Error("A task's completion callback has fired when the task was already in a completed state, this is unexpected");
Task.prototype.uncaughtExceptionCallback = function() {
var args, err;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
err = args[0];
if (!this.completed) {
this.complete(args);
}
this.emit('error', err);
}
return this;
};
return this;
};
Task.prototype.destroy = function() {
this.removeAllListeners();
return this;
};
Task.prototype.completionCallback = function() {
var args, err;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (!this.completed) {
this.complete(args);
this.emit.apply(this, ['complete'].concat(__slice.call(this.result)));
} else {
err = new Error("A task's completion callback has fired when the task was already in a completed state, this is unexpected");
this.emit('error', err);
}
return this;
};
Task.prototype.complete = function(result) {
this.completed = true;
this.running = false;
this.result = result;
return this;
};
Task.prototype.destroy = function() {
this.removeAllListeners();
return this;
};
Task.prototype.fire = function() {
var args,
_this = this;
args = (this.args || []).concat([this.completionCallback.bind(this)]);
if (this.taskDomain == null) {
this.taskDomain = domain.create();
this.taskDomain.on('error', this.uncaughtExceptionCallback.bind(this));
}
this.taskDomain.run(function() {
Task.prototype.complete = function(result) {
this.completed = true;
this.running = false;
this.result = result;
return this;
};
Task.prototype.fire = function() {
var args,
_this = this;
args = (this.args || []).concat([this.completionCallback.bind(this)]);
if (this.taskDomain == null) {
this.taskDomain = domain.create();
this.taskDomain.on('error', this.uncaughtExceptionCallback.bind(this));
}
this.taskDomain.run(function() {
var err;
try {
return ambi.apply(null, [_this.method.bind(_this)].concat(__slice.call(args)));
} catch (_error) {
err = _error;
return _this.uncaughtExceptionCallback(err);
}
});
return this;
};
Task.prototype.run = function() {
var err;
try {
return ambi.apply(null, [_this.method.bind(_this)].concat(__slice.call(args)));
} catch (_error) {
err = _error;
return _this.uncaughtExceptionCallback(err);
if (this.completed) {
err = new Error("A task was about to run but it has already completed, this is unexpected");
this.emit('error', err);
} else {
this.reset();
this.running = true;
this.emit('run');
process.nextTick(this.fire.bind(this));
}
});
return this;
};
return this;
};
Task.prototype.run = function() {
var err;
if (this.completed) {
err = new Error("A task was about to run but it has already completed, this is unexpected");
this.emit('error', err);
} else {
this.reset();
this.running = true;
this.emit('run');
process.nextTick(this.fire.bind(this));
}
return this;
};
return Task;
return Task;
})(EventEmitter);
})(EventEmitter);
TaskGroup = (function(_super) {
__extends(TaskGroup, _super);
TaskGroup = (function(_super) {
__extends(TaskGroup, _super);
TaskGroup.prototype.type = 'taskgroup';
TaskGroup.prototype.type = 'taskgroup';
TaskGroup.prototype.running = 0;
TaskGroup.prototype.running = 0;
TaskGroup.prototype.remaining = null;
TaskGroup.prototype.remaining = null;
TaskGroup.prototype.err = null;
TaskGroup.prototype.err = null;
TaskGroup.prototype.results = null;
TaskGroup.prototype.results = null;
TaskGroup.prototype.parent = null;
TaskGroup.prototype.parent = null;
TaskGroup.prototype.paused = true;
TaskGroup.prototype.paused = true;
TaskGroup.prototype.bubbleEvents = null;
TaskGroup.prototype.bubbleEvents = null;
TaskGroup.prototype.name = null;
TaskGroup.prototype.name = null;
TaskGroup.prototype.method = null;
TaskGroup.prototype.method = null;
TaskGroup.prototype.concurrency = 1;
TaskGroup.prototype.concurrency = 1;
TaskGroup.prototype.pauseOnError = true;
TaskGroup.prototype.pauseOnError = true;
function TaskGroup() {
var args, me, method, name;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
this.addGroup = __bind(this.addGroup, this);
this.addTask = __bind(this.addTask, this);
me = this;
TaskGroup.__super__.constructor.apply(this, arguments);
if (this.results == null) {
this.results = [];
}
if (this.remaining == null) {
this.remaining = [];
}
if (this.bubbleEvents == null) {
this.bubbleEvents = ['complete', 'run', 'error'];
}
name = method = null;
if (args.length) {
if (args.length === 2) {
name = args[0], method = args[1];
} else if (args.length === 1) {
method = args[0];
function TaskGroup() {
var args, me, method, name;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
this.addGroup = __bind(this.addGroup, this);
this.addTask = __bind(this.addTask, this);
me = this;
TaskGroup.__super__.constructor.apply(this, arguments);
if (this.results == null) {
this.results = [];
}
if (this.remaining == null) {
this.remaining = [];
}
if (this.bubbleEvents == null) {
this.bubbleEvents = ['complete', 'run', 'error'];
}
name = method = null;
if (args.length) {
if (args.length === 2) {
name = args[0], method = args[1];
} else if (args.length === 1) {
method = args[0];
}
}
this.setConfig({
name: name,
method: method
});
process.nextTick(this.fire.bind(this));
this.on('item.complete', this.itemCompletionCallback.bind(this));
this.on('item.error', function(item, err) {
me.stop();
return me.emit('error', err);
});
this;
}
this.setConfig({
name: name,
method: method
});
process.nextTick(this.fire.bind(this));
this.on('item.complete', this.itemCompletionCallback.bind(this));
this.on('item.error', function(item, err) {
me.stop();
return me.emit('error', err);
});
this;
}
TaskGroup.prototype.setConfig = function(opts) {
var key, value;
if (opts == null) {
opts = {};
}
for (key in opts) {
if (!__hasProp.call(opts, key)) continue;
value = opts[key];
this[key] = value;
}
return this;
};
TaskGroup.prototype.setConfig = function(opts) {
var key, value;
if (opts == null) {
opts = {};
}
for (key in opts) {
if (!__hasProp.call(opts, key)) continue;
value = opts[key];
this[key] = value;
}
return this;
};
TaskGroup.prototype.fire = function() {
var args;
if (this.method) {
args = [this.addGroup, this.addTask];
this.addTask(this.method.bind(this)).setConfig({
args: args,
includeInResults: false
});
if (!this.parent) {
this.run();
TaskGroup.prototype.fire = function() {
var args;
if (this.method) {
args = [this.addGroup, this.addTask];
this.addTask(this.method.bind(this)).setConfig({
args: args,
includeInResults: false
});
if (!this.parent) {
this.run();
}
}
}
return this;
};
return this;
};
TaskGroup.prototype.itemCompletionCallback = function() {
var args, item;
item = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
if (item.includeInResults !== false) {
this.results.push(args);
}
if (args[0]) {
this.err = args[0];
}
if (this.running > 0) {
--this.running;
}
if (this.paused) {
return;
}
if (!this.complete()) {
this.nextItems();
}
return this;
};
TaskGroup.prototype.itemCompletionCallback = function() {
var args, item;
item = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
if (item.includeInResults !== false) {
this.results.push(args);
}
if (args[0]) {
this.err = args[0];
}
if (this.running > 0) {
--this.running;
}
if (this.paused) {
return;
}
if (!this.complete()) {
this.nextItems();
}
return this;
};
TaskGroup.prototype.getTotals = function() {
var completed, remaining, running, total;
running = this.running;
remaining = this.remaining.length;
completed = this.results.length;
total = running + remaining + completed;
return {
running: running,
remaining: remaining,
completed: completed,
total: total
TaskGroup.prototype.getTotals = function() {
var completed, remaining, running, total;
running = this.running;
remaining = this.remaining.length;
completed = this.results.length;
total = running + remaining + completed;
return {
running: running,
remaining: remaining,
completed: completed,
total: total
};
};
};
TaskGroup.prototype.addItem = function(item) {
var me;
me = this;
this.bubbleEvents.forEach(function(bubbleEvent) {
return item.on(bubbleEvent, function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return me.emit.apply(me, ["item." + bubbleEvent, item].concat(__slice.call(args)));
TaskGroup.prototype.addItem = function(item) {
var me;
me = this;
this.bubbleEvents.forEach(function(bubbleEvent) {
return item.on(bubbleEvent, function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return me.emit.apply(me, ["item." + bubbleEvent, item].concat(__slice.call(args)));
});
});
});
this.emit('item.add', item);
this.remaining.push(item);
if (!this.paused) {
this.nextItems();
}
return item;
};
this.emit('item.add', item);
this.remaining.push(item);
if (!this.paused) {
this.nextItems();
}
return item;
};
TaskGroup.prototype.createTask = function() {
var args, task;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
task = (function(func, args, ctor) {
ctor.prototype = func.prototype;
var child = new ctor, result = func.apply(child, args);
return Object(result) === result ? result : child;
})(Task, args, function(){});
return task;
};
TaskGroup.prototype.createTask = function() {
var args, task;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
task = (function(func, args, ctor) {
ctor.prototype = func.prototype;
var child = new ctor, result = func.apply(child, args);
return Object(result) === result ? result : child;
})(Task, args, function(){});
return task;
};
TaskGroup.prototype.addTask = function() {
var args, me, task;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
me = this;
task = this.createTask.apply(this, args).setConfig({
parent: this
});
this.bubbleEvents.forEach(function(bubbleEvent) {
return task.on(bubbleEvent, function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return me.emit.apply(me, ["task." + bubbleEvent, task].concat(__slice.call(args)));
TaskGroup.prototype.addTask = function() {
var args, me, task;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
me = this;
task = this.createTask.apply(this, args).setConfig({
parent: this
});
});
this.emit('task.add', task);
return this.addItem(task);
};
this.bubbleEvents.forEach(function(bubbleEvent) {
return task.on(bubbleEvent, function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return me.emit.apply(me, ["task." + bubbleEvent, task].concat(__slice.call(args)));
});
});
this.emit('task.add', task);
return this.addItem(task);
};
TaskGroup.prototype.createGroup = function() {
var args, group;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
group = (function(func, args, ctor) {
ctor.prototype = func.prototype;
var child = new ctor, result = func.apply(child, args);
return Object(result) === result ? result : child;
})(TaskGroup, args, function(){});
return group;
};
TaskGroup.prototype.createGroup = function() {
var args, group;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
group = (function(func, args, ctor) {
ctor.prototype = func.prototype;
var child = new ctor, result = func.apply(child, args);
return Object(result) === result ? result : child;
})(TaskGroup, args, function(){});
return group;
};
TaskGroup.prototype.addGroup = function() {
var args, group, me;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
me = this;
group = this.createGroup.apply(this, args).setConfig({
concurrency: this.concurrency,
parent: this
});
this.bubbleEvents.forEach(function(bubbleEvent) {
return group.on(bubbleEvent, function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return me.emit.apply(me, ["group." + bubbleEvent, group].concat(__slice.call(args)));
TaskGroup.prototype.addGroup = function() {
var args, group, me;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
me = this;
group = this.createGroup.apply(this, args).setConfig({
concurrency: this.concurrency,
parent: this
});
});
this.emit('group.add', group);
return this.addItem(group);
};
this.bubbleEvents.forEach(function(bubbleEvent) {
return group.on(bubbleEvent, function() {
var args;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
return me.emit.apply(me, ["group." + bubbleEvent, group].concat(__slice.call(args)));
});
});
this.emit('group.add', group);
return this.addItem(group);
};
TaskGroup.prototype.hasItems = function() {
return this.remaining.length !== 0;
};
TaskGroup.prototype.hasItems = function() {
return this.remaining.length !== 0;
};
TaskGroup.prototype.isReady = function() {
return !this.concurrency || this.running < this.concurrency;
};
TaskGroup.prototype.isReady = function() {
return !this.concurrency || this.running < this.concurrency;
};
TaskGroup.prototype.nextItems = function() {
var item, items, result;
items = [];
while (true) {
item = this.nextItem();
if (item) {
items.push(item);
} else {
break;
TaskGroup.prototype.nextItems = function() {
var item, items, result;
items = [];
while (true) {
item = this.nextItem();
if (item) {
items.push(item);
} else {
break;
}
}
}
result = items.length ? items : false;
return result;
};
result = items.length ? items : false;
return result;
};
TaskGroup.prototype.nextItem = function() {
var nextItem;
if (this.hasItems()) {
if (this.isReady()) {
nextItem = this.remaining.shift();
++this.running;
nextItem.run();
return nextItem;
TaskGroup.prototype.nextItem = function() {
var nextItem;
if (this.hasItems()) {
if (this.isReady()) {
nextItem = this.remaining.shift();
++this.running;
nextItem.run();
return nextItem;
}
}
}
return false;
};
return false;
};
TaskGroup.prototype.complete = function() {
var completed, empty, pause;
pause = this.pauseOnError && this.err;
empty = this.hasItems() === false && this.running === 0;
completed = pause || empty;
if (completed) {
if (pause) {
this.pause();
TaskGroup.prototype.complete = function() {
var completed, empty, pause;
pause = this.pauseOnError && this.err;
empty = this.hasItems() === false && this.running === 0;
completed = pause || empty;
if (completed) {
if (pause) {
this.pause();
}
this.emit('complete', this.err, this.results);
this.err = null;
this.results = [];
}
this.emit('complete', this.err, this.results);
this.err = null;
this.results = [];
}
return completed;
};
return completed;
};
TaskGroup.prototype.clear = function() {
var item, _i, _len, _ref;
_ref = this.remaining.splice(0);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i];
item.destroy();
}
return this;
};
TaskGroup.prototype.clear = function() {
var item, _i, _len, _ref;
_ref = this.remaining.splice(0);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i];
item.destroy();
}
return this;
};
TaskGroup.prototype.destroy = function() {
this.stop();
this.removeAllListeners();
return this;
};
TaskGroup.prototype.destroy = function() {
this.stop();
this.removeAllListeners();
return this;
};
TaskGroup.prototype.stop = function() {
this.pause();
this.clear();
return this;
};
TaskGroup.prototype.stop = function() {
this.pause();
this.clear();
return this;
};
TaskGroup.prototype.exit = function(err) {
if (err) {
this.err = err;
}
this.stop();
this.running = 0;
this.complete();
return this;
};
TaskGroup.prototype.exit = function(err) {
if (err) {
this.err = err;
}
this.stop();
this.running = 0;
this.complete();
return this;
};
TaskGroup.prototype.pause = function() {
this.paused = true;
return this;
};
TaskGroup.prototype.pause = function() {
this.paused = true;
return this;
};
TaskGroup.prototype.run = function() {
var args, me;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
me = this;
this.paused = false;
this.emit('run');
process.nextTick(function() {
if (!me.complete()) {
return me.nextItems();
}
});
return this;
};
TaskGroup.prototype.run = function() {
var args, me;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
me = this;
this.paused = false;
this.emit('run');
process.nextTick(function() {
if (!me.complete()) {
return me.nextItems();
}
});
return this;
};
return TaskGroup;
return TaskGroup;
})(EventEmitter);
})(EventEmitter);
module.exports = {
Task: Task,
TaskGroup: TaskGroup
};
module.exports = {
Task: Task,
TaskGroup: TaskGroup
};
}).call(this);
{
"title": "TaskGroup",
"name": "taskgroup",
"version": "3.2.3",
"version": "3.2.4",
"description": "Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.",
"homepage": "https://github.com/bevry/taskgroup",
"license": {
"type": "MIT"
},
"badges": {
"travis": true,
"npm": true,
"gittip": "bevry",
"flattr": "344188/balupton-on-Flattr",
"paypal": "QB8GQPZAH84N6"
},
"keywords": [

@@ -15,3 +26,3 @@ "flow",

],
"author": "Bevry Pty Ltd <us@bevry.me> (http://bevry.me)",
"author": "Benjamin Lupton <b@lupton.cc>",
"maintainers": [

@@ -30,3 +41,2 @@ "Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)"

},
"license": "MIT",
"engines": {

@@ -36,3 +46,3 @@ "node": ">=0.4"

"dependencies": {
"ambi": "~2.1.4"
"ambi": "~2.1.5"
},

@@ -43,3 +53,4 @@ "devDependencies": {

"joe-reporter-console": "~1.2.1",
"chai": "~1.7.1"
"chai": "~1.8.1",
"projectz": "~0.2.3"
},

@@ -51,5 +62,5 @@ "directories": {

"preinstall": "node ./cyclic.js",
"test": "node ./out/test/everything-test.js"
"test": "node ./out/test/taskgroup-test.js"
},
"main": "./out/lib/taskgroup.js"
}

@@ -1,12 +0,29 @@

# Task Group
[![Build Status](https://secure.travis-ci.org/bevry/taskgroup.png?branch=master)](http://travis-ci.org/bevry/taskgroup "Check this project's build status on TravisCI")
<!-- TITLE/ -->
# TaskGroup
<!-- /TITLE -->
<!-- BADGES/ -->
[![Build Status](http://img.shields.io/travis-ci/bevry/taskgroup.png?branch=master)](http://travis-ci.org/bevry/taskgroup "Check this project's build status on TravisCI")
[![NPM version](https://badge.fury.io/js/taskgroup.png)](https://npmjs.org/package/taskgroup "View this project on NPM")
[![Gittip donate button](http://badgr.co/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip")
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip")
[![Flattr donate button](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr")
[![PayPayl donate button](https://www.paypalobjects.com/en_AU/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal")
<!-- /BADGES -->
<!-- DESCRIPTION/ -->
Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.
<!-- /DESCRIPTION -->
<!-- INSTALL/ -->
## Install

@@ -16,3 +33,3 @@

- Use: `require('taskgroup')`
- Install: 'npm install --save taskgroup'
- Install: `npm install --save taskgroup`

@@ -23,11 +40,13 @@ ### [Ender](http://ender.jit.su/)

## [Component](http://github.com/component/component)
### [Component](http://github.com/component/component)
- Use: `require('taskgroup')`
- Install: `component install bevry/taskgroup`
## [Bower](http://bower.io/)
### [Bower](http://bower.io/)
- Use: `require('taskgroup')`
- Install: `bower install taskgroup`
<!-- /INSTALL -->
## Usage

@@ -34,0 +53,0 @@

Sorry, the diff of this file is not supported yet

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