Skip to content

Commit d0b20a8

Browse files
authored
Merge pull request #3 from Geta/develop
Develop
2 parents 09c15ee + 6957453 commit d0b20a8

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
language: node_js
22
node_js:
3+
- 8
34
- 7
45
- 6
5-
- "0.10"
6-
- "0.12"
7-
- "iojs"
86
env:
97
- TEST_SUITE=unit
108
script:

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
# NestedObjectAssign
2+
[![Build Status](https://travis-ci.org/Geta/NestedObjectAssign.svg?branch=master)](https://travis-ci.org/Geta/NestedObjectAssign)
3+
[![dependencies Status](https://david-dm.org/geta/NestedObjectAssign/status.svg)](https://david-dm.org/geta/NestedObjectAssign)
4+
25
This package extends the functionality given by Object.assign() to also include the values of nested objects.
36

7+
## Installation
8+
```
9+
npm install --save nested-object-assign
10+
```
11+
412
## Usage
5-
Add the empty object first, then any objects you want merged into it after. unlimited amount of params.
13+
Works just like Object.Assign, add an empty object first (the object you want the other objects merged into), then as many objects as you wish afterwards, comma separated.
14+
15+
```js
16+
import nestedObjectAssign from 'nested-object-assign';
17+
const defaults = {}
618

7-
Example: `nestedObjectAssign({}, defaults, object1, object2, object3)`
19+
function test() {
20+
let data = nestedObjectAssign({}, defaults, object1, object2, object3);
21+
}
22+
```
823

924
## Tests
10-
Tests are done using mocha. to run tests, simply type `npm run tests`.
25+
Tests were done for these node.js versions:
26+
* 8
27+
* 7
28+
* 6

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nested-object-assign",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Package to support nested merging of objects & properties, using Object.Assign",
55
"main": "./index.js",
66
"scripts": {

0 commit comments

Comments
 (0)