# objbind

> bind all the functions on an object

Latest version **1.0.0** (published 2013-01-30) · BSD license · 0 weekly downloads

## Install

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

## 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 | 2013-01-30 |
| First published | 2013-01-30 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nathan Zadoks |
| Maintainers | nathan7 |
| Keywords | bind, utility |

## Links

- npm: https://www.npmjs.com/package/objbind
- Repository: https://github.com/nathan7/objbind
- npm.io page: https://npm.io/package/objbind

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2013-01-30

## README

objbind
=======
objbind takes an object and returns an object that inherits from it with all the enumerable functions bound to the first object.
confused? here's an example:
```javascript
var winston = require('winston')
  , objbind = require('objbind')
  , myWinston = objbind(winston, 'nathan says')
myWinston.info('hi')
console.log(myWinston.loggers === winston.loggers)
```

output:

    info: nathan says hi
    true


objbind(obj, args...)
---------------------

 * newObj = Object.create(obj)
 * for each enumerable function property of obj, assign fn.bind(obj, args...) to the same key on newObj
 * return newObj

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