# smallorange-light-store

> [![CircleCI](https://circleci.com/gh/feliperohdee/smallorange-light-store.svg?style=svg)](https://circleci.com/gh/feliperohdee/smallorange-light-store)

Latest version **1.0.6** (published 2019-11-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install smallorange-light-store
pnpm add smallorange-light-store
yarn add smallorange-light-store
bun add smallorange-light-store
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-11-07 |
| First published | 2018-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 50.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | feliperohde |

## Links

- npm: https://www.npmjs.com/package/smallorange-light-store
- npm.io page: https://npm.io/package/smallorange-light-store

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.5
- [preact](https://npm.io/package/preact.md) ^8.2.7

## Recent versions

- 1.0.6 (latest) — 2019-11-07
- 1.0.5 — 2019-10-14
- 1.0.2 — 2018-04-19
- 1.0.1 — 2018-04-19
- 1.0.0 — 2018-03-11

## README

[![CircleCI](https://circleci.com/gh/feliperohdee/smallorange-light-store.svg?style=svg)](https://circleci.com/gh/feliperohdee/smallorange-light-store)

## Sample

		const store = new Store();

		store.set({}, 'actionName');
		store.get() === store.s;
		const unsubscribe = store.subscribe(event: string /*optional*/, context: object /*optional*/, callback: function);
		const unsubscribe = store.subscribeOnce(event: string /*optional*/, context: object /*optional*/, callback: function);

		// async subscriptions are notified as soon all other subscriptions (not async) have been notified, useful to listen store on react components
		const unsubscribe = store.subscribeAsync(event: string /*optional*/, context: object /*optional*/, callback: function);
		const unsubscribe = store.subscribeAsyncOnce(event: string /*optional*/, context: object /*optional*/, callback: function);
		
		store.unsubscribe(event: string /*optional*/, context: object /*optional*/, callback: function);

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