# extend-exclude

> a util function that give that power of extend with excluding properties

Latest version **1.0.1** (published 2016-11-06) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-11-06 |
| First published | 2016-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | adibiton |

## Links

- npm: https://www.npmjs.com/package/extend-exclude
- npm.io page: https://npm.io/package/extend-exclude

## Dependencies (1)

- [mocha](https://npm.io/package/mocha.md) 3.1.*

## Recent versions

- 1.0.1 (latest) — 2016-11-06
- 1.0.0 — 2016-11-06

## README

# extend-exclude (node-extend with some salt) 
[![Build Status](https://travis-ci.org/adibiton/extend-exclude.svg?branch=master)](https://travis-ci.org/adibiton/extend-exclude)
- Deep copy from multiple sources to destination object
- Allow passing array of properties **not** to be copied to the 
destination object


# Installation
`npm install @adibiton/extend-exclude`

# API

`extend(dest, [exclude], [src])`

**dest**
Type: object
The object to be extended

**exclude**

Type: Array of strings
A black list of properties **not** to be included in the extended object
(value can be null) - the properties are only on the root level

**src**
Type: object / Array of objects
The source object(s) to be copied


# Install
```
npm install extend-exclude
```

# Example
```javascript
const extend = require('extend-exclude');

let x = {name: {first: 'Franz', last: 'Schubert'}, profession: 'composer'}; 
let y = {age: '55'};  

extend(y, ['profession'], x);  

console.log(y); //{ age: '55', name: { first: 'Franz', last: 'Schubert' } }
```

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