New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

copy-and-watch

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copy-and-watch - npm Package Compare versions

Comparing version

to
0.1.7

8

index.js

@@ -71,4 +71,8 @@ const fs = require('fs');

const to = findTarget(from);
fs.unlinkSync(to);
console.log('[DELETE]'.yellow, to);
if(fs.existsSync(to)) {
fs.unlinkSync(to);
console.log('[DELETE]'.yellow, to);
}else{
console.log('[DELETE FAILED]'.yellow, to);
}
};

@@ -75,0 +79,0 @@ const rimraf = dir => {

{
"name": "copy-and-watch",
"version": "0.1.6",
"version": "0.1.7",
"description": "Synchronize files or folders locally, with a watch option",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -45,2 +45,5 @@ # copy-and-watch

##### 0.1.7
- Check file existence before removal (by mt3o)
##### 0.1.4

@@ -47,0 +50,0 @@ - Added support for `—skip-initial-copy` argument (by mugli)