Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

merge

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

merge.js

8

package.json
{
"name": "merge",
"version": "1.0.0",
"version": "1.1.0",
"author": "yeikos",
"description": "NodeJS Merge is used to merge multiple objects into one object.",
"homepage": "https://github.com/yeikos/nodejs.merge",
"main": "index.js"
"description": "JavaScript/NodeJS Merge is a tool to merge multiple objects into one object, with the possibility of create a new object cloned. His operation is very similar to the jQuery.extend function but more flexible.",
"homepage": "https://github.com/yeikos/js.merge",
"main": "merge.js"
}

@@ -1,16 +0,52 @@

NodeJS Merge 1.0.0
JavaScript/NodeJS Merge v1.1.0
==================================================
What is this?
What is it?
--------------------------------------
NodeJS Merge is used to merge multiple objects into one object.
JavaScript/NodeJS Merge is a tool to merge multiple objects into one object, with the possibility of create a new object cloned. His operation is very similar to the [jQuery.extend](http://api.jquery.com/jQuery.extend/) function but more flexible.
Example
--------------------------------------
Example from NodeJS
--------------
var Merge = require('merge'),
var merge = require('merge'), // npm install -g merge
original, cloned;
console.log(
merge({ one: 'hello' }, { two: 'world' })
result = Merge({ one: 'hello' }, { two: 'world' });
); // {"one": "hello", "two": "world"}
original = { x: { y: 1 } };
console.log(result); // {"one":"hello","two":"world"}
cloned = merge(true, original);
cloned.x.y++;
console.log(original.x.y, cloned.x.y); // 1, 2
Example from JavaScript browser
--------------------------
<script src="http://yeikos.googlecode.com/files/merge.js"></script>
<script>
var original, cloned;
console.log(
merge({ one: 'hello' }, { two: 'world' })
); // {"one": "hello", "two": "world"}
original = { x: { y: 1 } };
cloned = merge(true, original);
cloned.x.y++;
console.log(original.x.y, cloned.x.y); // 1, 2
</script>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc