From 88a545ad296554aa31a99a4e08335c33428f67a9 Mon Sep 17 00:00:00 2001 From: Eirik Horvath Date: Sun, 30 Jul 2017 00:55:13 +0200 Subject: [PATCH 1/3] Updated documentation --- .travis.yml | 4 +--- README.md | 23 ++++++++++++++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 757480b..dbb46c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,8 @@ language: node_js node_js: + - 8 - 7 - 6 - - "0.10" - - "0.12" - - "iojs" env: - TEST_SUITE=unit script: diff --git a/README.md b/README.md index 0798975..7e8f7ea 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,27 @@ # NestedObjectAssign +[![Build Status](https://travis-ci.org/Geta/NestedObjectAssign.svg?branch=master)](https://travis-ci.org/Geta/NestedObjectAssign) + This package extends the functionality given by Object.assign() to also include the values of nested objects. +## Installation +``` +npm install --save nested-object-assign +``` + ## Usage -Add the empty object first, then any objects you want merged into it after. unlimited amount of params. +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. + +```js +import nestedObjectAssign from 'nested-object-assign'; +const defaults = {} -Example: `nestedObjectAssign({}, defaults, object1, object2, object3)` +function test() { + let data = nestedObjectAssign({}, defaults, object1, object2, object3); +} +``` ## Tests -Tests are done using mocha. to run tests, simply type `npm run tests`. \ No newline at end of file +Tests were done for these node.js versions: +* 8 +* 7 +* 6 \ No newline at end of file From 05de63d8f58a1a4637d5b3c30cfbaf513df136f0 Mon Sep 17 00:00:00 2001 From: Eirik Horvath Date: Sun, 30 Jul 2017 00:56:47 +0200 Subject: [PATCH 2/3] Added dependencies badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7e8f7ea..988a3f4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # NestedObjectAssign [![Build Status](https://travis-ci.org/Geta/NestedObjectAssign.svg?branch=master)](https://travis-ci.org/Geta/NestedObjectAssign) +[![dependencies Status](https://david-dm.org/geta/NestedObjectAssign/status.svg)](https://david-dm.org/geta/NestedObjectAssign) This package extends the functionality given by Object.assign() to also include the values of nested objects. From 6957453896dd768a2146c471df0f5b5e3c24f466 Mon Sep 17 00:00:00 2001 From: Eirik Horvath Date: Sun, 30 Jul 2017 00:58:02 +0200 Subject: [PATCH 3/3] Updated version to 1.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d35924c..2637357 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nested-object-assign", - "version": "1.0.0", + "version": "1.0.1", "description": "Package to support nested merging of objects & properties, using Object.Assign", "main": "./index.js", "scripts": {