# @dgaa/store-subject

> A very simplified replacement for Rx.js BehaviorSubject to be used as a separate package

Latest version **0.0.4** (published 2024-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dgaa/store-subject
pnpm add @dgaa/store-subject
yarn add @dgaa/store-subject
bun add @dgaa/store-subject
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2024-02-28 |
| First published | 2023-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pavlo Yevsehnieiev |
| Maintainers | ahineya |
| Keywords | behaviorsubject, event, observable |

## Links

- npm: https://www.npmjs.com/package/@dgaa/store-subject
- Repository: https://github.com/ahineya/dgaa
- Issues: https://github.com/ahineya/dgaa/issues
- npm.io page: https://npm.io/package/@dgaa/store-subject

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2024-02-28
- 0.0.3 — 2023-06-18
- 0.0.1 — 2023-06-18

## README

# store-subject

## Building

Run `nx build store-subject` to build the library.

## Running unit tests

Run `nx test store-subject` to execute the unit tests via [Jest](https://jestjs.io).

## Usage

```typescript
import { StoreSubject } from '@dgaa/store-subject';

const storeSubject = new StoreSubject(1);

storeSubject.subscribe((currentValue) => {
  console.log(currentValue); // 1
);

storeSubject.next(2); // Will log 2

storeSubject.getValue(); // Will return 2
```

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