# prop-change-decorators

> [![NPM](https://img.shields.io/npm/v/prop-change-decorators)](https://www.npmjs.com/package/prop-change-decorators) ![License](https://img.shields.io/npm/l/prop-change-decorators)

Latest version **1.0.1** (published 2023-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install prop-change-decorators
pnpm add prop-change-decorators
yarn add prop-change-decorators
bun add prop-change-decorators
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-05-24 |
| First published | 2023-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 47.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Arumi Sakura |
| Maintainers | arumi-s |

## Links

- npm: https://www.npmjs.com/package/prop-change-decorators
- Repository: https://github.com/arumi-s/prop-change-decorators
- Homepage: https://github.com/arumi-s/prop-change-decorators#readme
- Issues: https://github.com/arumi-s/prop-change-decorators/issues
- npm.io page: https://npm.io/package/prop-change-decorators

## Recent versions

- 1.0.1 (latest) — 2023-05-24
- 1.0.0 — 2023-05-24

## README

# Prop Change Decorators

[![NPM](https://img.shields.io/npm/v/prop-change-decorators)](https://www.npmjs.com/package/prop-change-decorators)
![License](https://img.shields.io/npm/l/prop-change-decorators)

## Install

```bash
npm install prop-change-decorators
```

### Install peer dependencies

```bash
npm install rxjs@7
```

## Usage

```typescript
import { Dispatcher, Clamp, ClampTarget } from 'prop-change-decorators';

class Entity {
	@Dispatcher()
	change$: ChangeDispatcher<Entity>;

	@Clamp({ name: 'numberValue' })
	private __numberValue__ = 5;
	numberValue: number;
	numberValueMin: number = 0;
	numberValueMax: number = 10;

	@ClampTarget({ name: 'numberValue' })
	private __numberValueTarget__: number = 8;
	numberValueTarget: number;
}
```

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