# bitstatejs

> Manage class state

Latest version **1.0.0** (published 2021-01-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install bitstatejs
pnpm add bitstatejs
yarn add bitstatejs
bun add bitstatejs
```

## 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.0 |
| Published | 2021-01-04 |
| First published | 2021-01-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jay |
| Maintainers | jaylim12 |
| Keywords | state |

## Links

- npm: https://www.npmjs.com/package/bitstatejs
- Repository: https://github.com/jaylim/bitstate
- Homepage: https://github.com/jaylim/bitstate#readme
- Issues: https://github.com/jaylim/bitstate/issues
- npm.io page: https://npm.io/package/bitstatejs

## 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

- 1.0.0 (latest) — 2021-01-04

## README

# bitstate


```javascript
const { State } = require('bitstate');

let s = new State();

s.add(0x1);
s.add(0x2);

assert.equal(s.state, 3);
assert.equal(s.has(0x1), true);
assert.equal(s.has(0x2), true);
assert.equal(s.has(0x3), true);
assert.equal(s.has(0x4), false);

```

# installation

```
npm install bitstate --save
```

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