New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

copyjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copyjs

copyjs is for deep copies of javascript objects

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
8
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

copyjs

copyjs copyjs is for deep copies of javascript objects

npm install copyjs
var a = {
  val: 15,
  business: 'isGood'
};

var b = copy(a);

#  object a { val: 15, business: 'isGood' }
#  object b { val: 15, business: 'isGood' }

b.val = 8000;
b.business = 'isBetter';

#  object a { val: 15, business: 'isGood' }
#  object b { val: 8000, business: 'isBetter' }

license: BSD

notes: I would have used https://npmjs.org/package/copy but I couldn't find/see their source Ok, that source is linked now https://github.com/evlun/copy and they even support packed arrays and buffers efficiently.

Keywords

copy

FAQs

Package last updated on 17 Aug 2018

Did you know?

Socket

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