# object-inject

> Inject a new object into an existing object at a certain position.

Latest version **0.0.2** (published 2015-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-inject
pnpm add object-inject
yarn add object-inject
bun add object-inject
```

## 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.0.2 |
| Published | 2015-01-11 |
| First published | 2015-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dustin Higginbotham |
| Maintainers | dustinwtf |
| Keywords | object, inject, ordering |

## Links

- npm: https://www.npmjs.com/package/object-inject
- Repository: https://github.com/use-weave/object-inject
- Issues: https://github.com/use-weave/object-inject/issues
- npm.io page: https://npm.io/package/object-inject

## Recent versions

- 0.0.2 (latest) — 2015-01-11
- 0.0.1 — 2015-01-11

## README

# object-inject
Inject a new object into an existing one at a certain position.

## Example
```javascript
var objectInject = require('object-inject');

var original = {
  created: new Date(),
  modified: new Date(),
  name: 'Test!',
  status: 'active'
};

var injectThis = {
  info: {
    created_by: 'me',
    modified_by: 'you'
  }
};

var newObject = objectInject(original, injectThis, 'name', 'before');
```

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