# reactive-dict

> [Source code of released version](https://github.com/meteor/meteor/tree/master/packages/reactive-dict) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/reactive-dict) ***

Latest version **1.0.9** (published 2021-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install reactive-dict
pnpm add reactive-dict
yarn add reactive-dict
bun add reactive-dict
```

## 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.9 |
| Published | 2021-04-30 |
| First published | 2021-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 28.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Harry Adel |
| Maintainers | harryadel |

## Links

- npm: https://www.npmjs.com/package/reactive-dict
- npm.io page: https://npm.io/package/reactive-dict

## Dependencies (4)

- [ejson](https://npm.io/package/ejson.md) ^2.2.1
- [standalone-tracker](https://npm.io/package/standalone-tracker.md) ^1.0.1
- [standalone-mongo-id](https://npm.io/package/standalone-mongo-id.md) ^0.1.1
- [@reactioncommerce/random](https://npm.io/package/@reactioncommerce/random.md) ^1.0.2

## Recent versions

- 1.0.9 (latest) — 2021-04-30
- 1.0.8 — 2021-04-28
- 1.0.5 — 2021-04-19
- 1.0.4 — 2021-04-19
- 1.0.3 — 2021-04-19
- 1.0.2 — 2021-04-19
- 1.0.1 — 2021-04-08
- 1.0.0 — 2021-04-08

## README

# reactive-dict
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/reactive-dict) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/reactive-dict)
***

This package provide `ReactiveDict`, a general-purpose reactive
datatype for use with
[tracker](https://atmospherejs.com/meteor/tracker). It provides all of
the functionality of the `Session` object documented in the [main
Meteor docs](https://docs.meteor.com/#session), such as reactive
`get`, `set`, and `equals` functions.

If you provide a name to its constructor, its contents will be saved across Hot
Code Push client code updates.

Example usage:

```js
var dict = new ReactiveDict('myDict');
dict.set("weather", "cloudy");
Tracker.autorun(function () { console.log("now " + dict.get("weather")); });
// now cloudy
dict.set("weather", "sunny");
// now sunny
```

For more information, see the [Tracker project
page](http://docs.meteor.com/api/tracker.html).

## Future work

Unify with [reactive-var](https://atmospherejs.com/meteor/reactive-var).

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