# flashlight-reactivity

> Reactivity made simple

Latest version **0.0.2** (published 2023-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install flashlight-reactivity
pnpm add flashlight-reactivity
yarn add flashlight-reactivity
bun add flashlight-reactivity
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-05-08 |
| First published | 2023-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JetStack |
| Maintainers | jetstack |
| Keywords | Reactivity, State management |

## Links

- npm: https://www.npmjs.com/package/flashlight-reactivity
- Repository: https://github.com/JetStackSoftware/flashlight
- Homepage: https://github.com/JetStackSoftware/flashlight#readme
- Issues: https://github.com/JetStackSoftware/flashlight/issues
- npm.io page: https://npm.io/package/flashlight-reactivity

## Recent versions

- 0.0.2 (latest) — 2023-05-08
- 0.0.1 — 2023-05-08

## README

# Flashlight
Reactivity made simple
## Installation
```
# via npm
npm i --save flashlight-reactivity

# via yarn
yarn add flashlight-reactivity

# via pnpm
pnpm i flashlight-reactivity
```
## Usage
```typescript
import { store } from 'flashlight-reactivity'

// Create a store
const myStore = store(0)

// Get store value
myStore.get()

// Set value
myStore.set(10)

// Subscribe
const unsubscribe = myStore.subscribe(value => {
	// Do something with the value...
})

// Unsubscribe
unsubscribe()
```
## ToDo

 - [x] Reactive store
 - [ ] Async store
 - [ ] Operators :(
 - [ ] Other stuff

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