Socket
Socket
Sign inDemoInstall

copier

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    copier

Copies the enumerable properties of one or more objects to a target object.


Version published
Weekly downloads
9
increased by28.57%
Maintainers
1
Install size
117 kB
Created
Weekly downloads
 

Readme

Source

copier

A JavaScript object property copier. Copies the enumerable properties of one or more objects to a target object.

Installation

Server:

$ npm install copier

Client:

$ component install shannonmoeller/copier.js

API

copier(target, objs...)

Copies the enumerable properties of one or more objects to a target object.

var copier = require('copier'),
    foo = { a: 1, b: 2 },
    bar = { b: 3, c: 4 };

copier({}, foo, bar); // returns { a: 1, b: 3, c: 4 }

// foo and bar remain unchanged

copier(foo, bar); // foo now equals { a: 1, b: 3, c: 4 }

License

MIT

FAQs

Last updated on 30 Dec 2012

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc