# bind-all

> Bind all methods to an object.

Latest version **1.0.0** (published 2016-05-19) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install bind-all
pnpm add bind-all
yarn add bind-all
bun add bind-all
```

## 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-05-19 |
| First published | 2013-10-08 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Segment |
| Maintainers | segmentio |
| Keywords | bind, bind-all |

## Links

- npm: https://www.npmjs.com/package/bind-all
- Repository: https://github.com/segmentio/bind-all
- Homepage: https://github.com/segmentio/bind-all#readme
- Issues: https://github.com/segmentio/bind-all/issues
- npm.io page: https://npm.io/package/bind-all

## Dependencies (1)

- [component-bind](https://npm.io/package/component-bind.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2016-05-19
- 0.0.2 — 2013-10-08

## README

# bind-all

[![CircleCI](https://circleci.com/gh/segmentio/bind-all.svg?style=shield&circle-token=44eaf068f6a17612b53bb64b107cd3b7c1c776e6)](https://circleci.com/gh/segmentio/bind-all)
[![Codecov](https://img.shields.io/codecov/c/github/segmentio/bind-all/master.svg?maxAge=2592000)](https://codecov.io/gh/segmentio/bind-all)

Create singletons from objects.

## Installation

```sh
$ npm install bind-all
```

## API

```js
function User() {
  this.x = 4;
}

User.prototype.y = function y() {
  return this.x;
};

var user = bindAll(new User());

user.y.apply(this); // 4
```

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