# auto-bind-extend

> extendable class for binding functions

Latest version **1.0.0** (published 2016-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install auto-bind-extend
pnpm add auto-bind-extend
yarn add auto-bind-extend
bun add auto-bind-extend
```

## 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.0 |
| Published | 2016-12-14 |
| First published | 2016-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dmamills |
| Maintainers | dmamills |

## Links

- npm: https://www.npmjs.com/package/auto-bind-extend
- npm.io page: https://npm.io/package/auto-bind-extend

## Dependencies (1)

- [auto-bind](https://npm.io/package/auto-bind.md) ^0.1.0

## Recent versions

- 1.0.0 (latest) — 2016-12-14

## README

# auto-bind-extend

[![codecov.io](https://codecov.io/github/dmamills/auto-bind-extend/coverage.svg?branch=master)](https://codecov.io/github/dmamills/auto-bind-extend?branch=master) [![Build Status](https://secure.travis-ci.org/dmamills/auto-bind-extend.png)](http://travis-ci.org/dmamills/auto-bind-extend)

a simple class that can be used to put your function context troubles to rest. Based on [auto-bind](https://github.com/sindresorhus/auto-bind)

## example

```javascript

const BaseAutoBind = require('auto-bind-extend');

class Cool extends BaseAutoBind {
    constructor() {
        super();
        this.name = 'Cool';
    }

    say() {
        return this.name;
    }
}

let cool = new Cool();

// No matter where this function may travel, it'll stay cool
let coolSayFn = cool.say;
console.log(coolSayFn()); // Cool!
```


## dev

```
npm test
npm run coverage
```

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