Comparing version 0.2.3 to 0.2.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION_CHECK_DIRECTION = 'https://zaldih.tk/npkill/version.json'; | ||
exports.VERSION_CHECK_DIRECTION = 'https://npkill.js.org/version.json'; | ||
exports.VERSION_KEY = 'last-recomended-version'; |
@@ -236,2 +236,4 @@ "use strict"; | ||
this.printFoldersSection(); | ||
if (this.config.deleteAll) | ||
this.deleteFolder(nodeFolder); | ||
}); | ||
@@ -238,0 +240,0 @@ } |
@@ -33,3 +33,4 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
child_process_1.exec('rm -rf ' + path, (error, stdout, stderr) => { | ||
const command = `rm -rf "${path}"`; | ||
child_process_1.exec(command, (error, stdout, stderr) => { | ||
if (error) | ||
@@ -36,0 +37,0 @@ return reject(error); |
{ | ||
"name": "npkill", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "This tool allows you to list any node_modules directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
2257969
941