# swint-task

> Batch task manager for Swint

Latest version **1.0.12** (published 2019-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install swint-task
pnpm add swint-task
yarn add swint-task
bun add swint-task
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2019-03-05 |
| First published | 2015-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 2 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kurt Cho |
| Maintainers | knowre |
| Keywords | swint, task, batch |

## Links

- npm: https://www.npmjs.com/package/swint-task
- Repository: https://github.com/KnowRe-Dev/swint-task
- Issues: https://github.com/KnowRe-Dev/swint-task/issues
- npm.io page: https://npm.io/package/swint-task

## Dependencies (2)

- [async](https://npm.io/package/async.md) 2.6.2
- [swint-helper](https://npm.io/package/swint-helper.md) 1.2.10

## Recent versions

- 1.0.12 (latest) — 2019-03-05
- 1.0.11 — 2017-12-07
- 1.0.10 — 2017-09-18
- 1.0.9 — 2017-07-24
- 1.0.8 — 2017-06-15
- 1.0.7 — 2017-05-16
- 1.0.6 — 2017-03-23
- 1.0.5 — 2017-03-06
- 1.0.4 — 2017-01-31
- 1.0.3 — 2016-06-06
- 1.0.2 — 2016-04-02
- 1.0.1 — 2016-03-01
- 1.0.0 — 2016-01-03
- 0.1.1 — 2015-08-19
- 0.1.0 — 2015-08-18

## README

# swint-task

[![Greenkeeper badge](https://badges.greenkeeper.io/Knowre-Dev/swint-task.svg)](https://greenkeeper.io/)
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
```sh
$ npm install --save swint-task
```

## Usage
```javascript
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
});

```

---
_Source: https://npm.io/package/swint-task · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
