Socket
Socket
Sign inDemoInstall

shredfile

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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 @@

});
```
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc