# global-machine

> ```js import { machine, utils } from '@leofcoin/state-machine';

Latest version **0.1.5** (published 2019-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install global-machine
pnpm add global-machine
yarn add global-machine
bun add global-machine
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2019-06-17 |
| First published | 2019-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Glenn Vandeuren |
| Maintainers | vandeurenglenn |
| Keywords | state, machine, store, global |

## Links

- npm: https://www.npmjs.com/package/global-machine
- Repository: https://github.com/leofcoin/global-machine
- Homepage: https://github.com/leofcoin/global-machine#readme
- Issues: https://github.com/leofcoin/global-machine/issues
- npm.io page: https://npm.io/package/global-machine

## Dependencies (1)

- [little-pubsub](https://npm.io/package/little-pubsub.md) ^0.2.5

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 0.1.5 (latest) — 2019-06-17
- 0.1.4 — 2019-06-17
- 0.1.3 — 2019-06-17
- 0.1.2 — 2019-06-17
- 0.1.1 — 2019-06-17
- 0.1.0 — 2019-01-26

## README

# state-machine

## usage
```js
import { machine, utils } from '@leofcoin/state-machine';

machine.set('hello', 'world')
machine.get('hello'); // world
machine.remove('hello');


const globalArr = utils.array('hello', ['world']);
globalArr.set(1, 'world2');
globalArr.get(0); // world
globalArr.get(1); // world2
globalArr.remove(0); ['world2']
globalArr.remove('world2'); []

const globalObject = utils.array('hello', {'world': true});
globalObject.get('world'); // true
globalObject.set('world', false);
globalObject.get(0); // false
globalObject.remove('world'); {}
```

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