# handle-data-change

> Handle data change

Latest version **1.3.2** (published 2018-11-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install handle-data-change
pnpm add handle-data-change
yarn add handle-data-change
bun add handle-data-change
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.3.2 |
| Published | 2018-11-19 |
| First published | 2018-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel Perez Alvarez |
| Maintainers | danielpanpm |
| Keywords | typescript |

## Links

- npm: https://www.npmjs.com/package/handle-data-change
- Repository: https://github.com/LeDDGroup/handle-data-change
- Homepage: https://github.com/LeDDGroup/handle-data-change#readme
- Issues: https://github.com/LeDDGroup/handle-data-change/issues
- npm.io page: https://npm.io/package/handle-data-change

## Dependencies (1)

- [dynamic-on-change](https://npm.io/package/dynamic-on-change.md) ^1.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.3.2 (latest) — 2018-11-19
- 1.3.1 — 2018-11-08
- 1.3.0 — 2018-11-08
- 1.2.0 — 2018-11-07
- 1.1.0 — 2018-11-07
- 1.0.1 — 2018-11-06
- 1.0.0 — 2018-11-06

## README

# handle-data-change

[![npm version](https://img.shields.io/npm/v/handle-data-change.svg)](https://www.npmjs.com/package/handle-data-change)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Handle data change.

- Great Typescript support.
- Meant to be used with React.

## Usage

```ts
// index.ts
import HandleDataChange from "handle-data-change";

type Data = { foo: string; bar: number };

const handleChange = new HandleDataChange<Data>(
  { foo: "adsf", bar: 0 },
  data => {
    console.log(data);
  }
);

handleChange.change.bar(6);
handleChange.change.foo("hello world");
```

```sh
$ ts-node index.ts
{ foo: 'adsf', bar: 6 }
{ foo: 'hello world', bar: 6 }
```

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