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

node-clone

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-clone

Universal object cloning

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
12
-60%
Maintainers
0
Weekly downloads
 
Created
Source

//Universal js Clone function (we think...) //Works for any js object

Release : 0.1.0 initial release

Install :

Create a directory : mkdir node-clone Go to your directory : cd node-clone Clone the repository : git clone https://github.com/Nais/node-clone.git Install : npm link .

Or simply install from npm : npm install node-clone

Example :

//clone setTimeout var Clone=require('node-clone').Clone(setTimeout);

//define my custom setTimeout var myCustomsetTimeout=function(){if (typeof(arguments[0])!='function') console.log('it is not good to call setTimeout not using a function'); Clone.apply(this,arguments); }

//replace setTimeout by my custom setTimeout setTimeout=myCustomsetTimeout;

setTimeout(function(){console.log('Hello World');},1000);

FAQs

Package last updated on 17 Jun 2011

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