New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

swint-task

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swint-task

Batch task manager for Swint

latest
Source
npmnpm
Version
1.0.12
Version published
Maintainers
1
Created
Source

swint-task

Greenkeeper badge Batch task manager for Swint. Proceeds the tasks one-by-one, respectively.

Warning: This is not the final draft yet, so do not use this until its official version is launched

Installation

$ npm install --save swint-task

Usage

var tasks = [
		{
			func: function(option, callback) {
				// task 1
				callback(null, true);
			}
		},
		{
			func: function(option, callback) {
				// task 2
				callback(null, option.value); // option.value === 42
			},
			option: {
				value: 42
			}
		},
		{
			func: function(option, callback) {
				setTimeout(function() {
					// task 3
					callback(null, true);
				}, 10);
			}
		}
	];

task(tasks, function(err, res) {
	// task 1, 2, 3 is executed, respectively
});

Keywords

swint

FAQs

Package last updated on 05 Mar 2019

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