# @nathanfaucett/atom

> clojure like atom for the browser and node.js

Latest version **0.0.2** (published 2017-04-03) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @nathanfaucett/atom
pnpm add @nathanfaucett/atom
yarn add @nathanfaucett/atom
bun add @nathanfaucett/atom
```

## 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.0.2 |
| Published | 2017-04-03 |
| First published | 2017-04-01 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nathan Faucett |
| Maintainers | nathanfaucett |
| Keywords | atom, atom.js |

## Links

- npm: https://www.npmjs.com/package/@nathanfaucett/atom
- Repository: https://github.com/nathanfaucett/js-atom
- Homepage: https://github.com/nathanfaucett/js-atom#readme
- Issues: https://github.com/nathanfaucett/js-atom/issues
- npm.io page: https://npm.io/package/@nathanfaucett/atom

## Dependencies (2)

- [@nathanfaucett/index_of](https://npm.io/package/@nathanfaucett/index_of.md) ^0.0.1
- [@nathanfaucett/is_function](https://npm.io/package/@nathanfaucett/is_function.md) ^0.0.1

## Recent versions

- 0.0.2 (latest) — 2017-04-03
- 0.0.1 — 2017-04-01

## README

Atom
=======

clojure like atom for the browser and node.js

```javascript
var Atom = require("@nathanfaucett/atom");


var atom = Atom({
  key: null
});

atom.addListener(function onChange(prev, next) {
  // use prev and next state
});

atom.update(function update(current) {
  return {
    key: "value"
  }
});
console.log(atom.get()); // { key: "value" }

atom.set({
  key: null
});
console.log(atom.get()); // { key: null }


```

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