# config-extend

> Modified version of extend for config files

Latest version **0.1.1** (published 2016-11-23) · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-11-23 |
| First published | 2013-02-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | James Hight |
| Maintainers | jmerrick |

## Links

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

## Recent versions

- 0.1.1 (latest) — 2016-11-23
- 0.1.0 — 2015-02-18
- 0.0.7 — 2014-08-05
- 0.0.6 — 2013-09-08
- 0.0.5 — 2013-09-08
- 0.0.4 — 2013-07-15
- 0.0.3 — 2013-07-15
- 0.0.2 — 2013-07-12
- 0.0.1 — 2013-02-12

## README

node-extend
===========

Object extend function designed for config files.

Modified version of the node module node.extend, an implementation of jQuery extend.

Differences:

*	Deep copying is enabled by default.
*	Arrays are replaced instead of combined.


Installation
------------

	npm install config-extend

Usage
-----

````javascript
var configExtend = require('config-extend'),
	production = {
		port: 1234,
		memcached: [
			'server1',
			'server2',
			'server3'
		]
	},
	staging = {
		port: 456,
		memcached: [
			'server4'
		]
	},
	devFoo = {
		memcached: [
			'localhost'
		]
	},
	objCombined = configExtend(production, staging, devFoo);

	/* objCombined Value:
		{
			port: 456,
			memcached: [
				'localhost'
			]
		}
	*/
````

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