# kargo

> a flux payload object.

Latest version **0.4.5** (published 2015-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install kargo
pnpm add kargo
yarn add kargo
bun add kargo
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.5 |
| Published | 2015-06-06 |
| First published | 2015-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steven Terpe |
| Maintainers | sterpe |
| Keywords | flux, react, payload, kargo |

## Links

- npm: https://www.npmjs.com/package/kargo
- Repository: https://github.com/sterpe/kargo
- Issues: https://github.com/sterpe/kargo/issues
- npm.io page: https://npm.io/package/kargo

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.4.5 (latest) — 2015-06-06
- 0.4.4 — 2015-06-06
- 0.4.3 — 2015-06-06
- 0.4.2 — 2015-06-06

## README

# kargo

```javascript
var Payload = require('kargo').Payload
, payload = new Payload('FOO', 'a', 'b', 1, 2)
;

/*
 * {
 * 	type: "FOO"
 *	, actionType: "FOO"
 *	, arguments: ['a', 'b', 1, 2]
 * 	, apply: function (thisArg, func) {}
 * }
 *
 */

dispatcher.register(someStore.onDispatch = function (payload) {
	switch (payload.actionType) {
	case "FOO":
		payload.apply(someStore, someStore.someFunction);
		break;
	default:
		return;
	}

	// emit `change`, maybe ?
});
```

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