# @blackglory/observe

> A module for observing things happening.

Latest version **0.3.2** (published 2026-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @blackglory/observe
pnpm add @blackglory/observe
yarn add @blackglory/observe
bun add @blackglory/observe
```

## Health

**Score 60/100 (C)** — status: stable.

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2026-02-20 |
| First published | 2021-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 2 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | BlackGlory |
| Maintainers | black_glory |
| Keywords | DOM |

## Links

- npm: https://www.npmjs.com/package/@blackglory/observe
- Repository: https://github.com/BlackGlory/observe
- Homepage: https://github.com/BlackGlory/observe#readme
- Issues: https://github.com/BlackGlory/observe/issues
- npm.io page: https://npm.io/package/@blackglory/observe

## Dependencies (2)

- [rxjs](https://npm.io/package/rxjs.md) ^7.8.2
- [iterable-operator](https://npm.io/package/iterable-operator.md) ^6.0.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.3.2 (latest) — 2026-02-20
- 0.3.1 — 2026-02-17
- 0.3.0 — 2025-07-11
- 0.2.1 — 2023-06-11
- 0.2.0 — 2023-03-18
- 0.1.7 — 2022-11-01
- 0.1.6 — 2022-08-06
- 0.1.5 — 2022-01-06
- 0.1.4 — 2021-10-14
- 0.1.3 — 2021-10-14
- 0.1.2 — 2021-07-12
- 0.1.1 — 2021-05-16
- 0.1.0 — 2021-04-24

## README

# observe
A module for observing things happening.

## Install
```sh
npm install --save @blackglory/observe
# or
yarn add @blackglory/observe
```

## API
### observeURLChanges
```ts
function observeURLChanges(): Observable<void>
```

### observeStateChanges
```ts
function observeStateChanges(): Observable<void>
```

### observeAdditionsOfDescendantNodes
```ts
function observeAdditionsOfDescendantNodes(node: Node): Observable<Node[]>
```

### observeRemovalsOfDescendantNodes
```ts
function observeRemovalsOfDescendantNodes(node: Node): Observable<Node[]>
```

### observeMutations
```ts
function observeMutations(
  ...args: Parameters<MutationObserver['observe']>
): Observable<MutationRecord[]>
```

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