# extend-functions

> Extends a target objects with functions from the source object, keeping the context of the source object.

Latest version **0.1.0** (published 2015-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install extend-functions
pnpm add extend-functions
yarn add extend-functions
bun add extend-functions
```

## 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.1.0 |
| Published | 2015-07-28 |
| First published | 2015-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | extend, function |

## Links

- npm: https://www.npmjs.com/package/extend-functions
- Repository: https://github.com/zkochan/extend-functions
- Homepage: https://github.com/zkochan/extend-functions#readme
- Issues: https://github.com/zkochan/extend-functions/issues
- npm.io page: https://npm.io/package/extend-functions

## Dependencies (1)

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

## Recent versions

- 0.1.0 (latest) — 2015-07-28

## README

# extend-functions

Extends a target objects with functions from the source object, keeping the context of the source object.

[![Dependency Status](https://david-dm.org/zkochan/extend-functions/status.svg?style=flat)](https://david-dm.org/zkochan/extend-functions)
[![Build Status](https://travis-ci.org/zkochan/extend-functions.svg?branch=master)](https://travis-ci.org/zkochan/extend-functions)
[![npm version](https://badge.fury.io/js/extend-functions.svg)](http://badge.fury.io/js/extend-functions)


## Installation

```
npm install --save extend-functions
```


## Usage

```js
var extendFunctions = require('extend-functions');

var source = {
  msg: 'Hello world!',
  log: function() {
    console.log(this.msg);
  }
};
var target = {};

extendFunctions(target, source);

target.log(); /* Will print `Hello world!` */
```


## License

MIT

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