shredfile
Advanced tools
Comparing version 0.1.2 to 0.2.0
10
index.js
@@ -70,5 +70,3 @@ /*! | ||
console.log("shredfile: Shredding initiated."); | ||
var file = ''; // for storing file name being actively shredded | ||
var active_file_path = ''; // for storing parent directory of file being actively shredded | ||
var orig_files = files; | ||
@@ -87,2 +85,8 @@ if(typeof files == 'string') | ||
// For storing file name being actively shredded | ||
var file = path.basename(files[0]); | ||
// For storing parent directory of file being actively shredded | ||
var active_file_path = path.dirname(files[0]); | ||
// Spawn the shred binary | ||
@@ -89,0 +93,0 @@ var options = __.union(this.shred_flags,files) |
{ | ||
"name": "shredfile", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "A simple wrapper to the Unix shred command.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,3 +22,3 @@ ## NodeJS Secure File Removal Utility | ||
```javascript | ||
var shredfile = require('shredfile'); | ||
var shredfile = require('shredfile')(); | ||
``` | ||
@@ -100,2 +100,2 @@ | ||
}); | ||
``` | ||
``` |
11484
155
100