# binderify

> Easily bind every method in an object, to the object.

Latest version **1.0.2** (published 2016-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install binderify
pnpm add binderify
yarn add binderify
bun add binderify
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-10-05 |
| First published | 2016-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | chrisantaki |

## Links

- npm: https://www.npmjs.com/package/binderify
- Repository: https://github.com/ChrisAntaki/binderify
- Homepage: https://github.com/ChrisAntaki/binderify#readme
- Issues: https://github.com/ChrisAntaki/binderify/issues
- npm.io page: https://npm.io/package/binderify

## Recent versions

- 1.0.2 (latest) — 2016-10-05
- 1.0.1 — 2016-10-05
- 1.0.0 — 2016-10-05

## README

Works with classes and simple objects

```js
class Node {
    constructor(data) {
        binderify(this);

        this.data = data;
    }

    report() {
        return this.data;
    }
}

const node = new Node(128);
const method = node.report;
assert.equal(method(), 128);
```

```js
const obj = {
    val: 64,
    ret: function() {
        return this.val;
    },
};

binderify(obj);

const method = obj.ret;
assert.equal(method(), 64);
```

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