# twixt-mutation

> attach mutation event handlers

Latest version **0.0.1** (published 2016-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install twixt-mutation
pnpm add twixt-mutation
yarn add twixt-mutation
bun add twixt-mutation
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-06-21 |
| First published | 2016-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Richard Remer |
| Maintainers | rremer |

## Links

- npm: https://www.npmjs.com/package/twixt-mutation
- Repository: https://github.com/richRemer/twixt-mutation
- Homepage: https://github.com/richRemer/twixt-mutation#readme
- Issues: https://github.com/richRemer/twixt-mutation/issues
- npm.io page: https://npm.io/package/twixt-mutation

## Recent versions

- 0.0.1 (latest) — 2016-06-21

## README

twixt-mutation Function
=======================

```js
var mutation = require("twixt-mutation"),
    Mutant = require("twixt-mutant"),
    subject = Mutant({});

mutation(subject, function(subject, mutations) {
    var was, is;
    
    for (var prop in mutations) {
        was = mutations[prop];
        is = subject[prop];
        console.log(prop, "mutated from", was, "to", is);
    }
});

subject.foo = 13;   // "foo mutated from undefined to 13"
```

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