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

@vbarbarosh/node-helpers

Package Overview
Dependencies
Maintainers
0
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vbarbarosh/node-helpers - npm Package Compare versions

Comparing version 3.39.0 to 3.40.0

src/fs_rmf.js

2

package.json

@@ -5,3 +5,3 @@ {

"name": "@vbarbarosh/node-helpers",
"version": "3.39.0",
"version": "3.40.0",
"description": "A set of helpers for JavaScript/Node.js",

@@ -8,0 +8,0 @@ "files": [

@@ -0,5 +1,18 @@

const Promise = require('bluebird');
const fs = require('fs');
const util = require('util');
// https://nodejs.org/api/util.html#util_util_promisify_original
module.exports = util.promisify(fs.unlink);
/**
* Remove a file
*
* @link https://nodejs.org/api/fs.html#fsunlinkpath-callback
*/
async function fs_rm(filename)
{
await new Promise(function (resolve, reject) {
fs.unlink(filename, function (error) {
error ? reject(error) : resolve();
});
});
}
module.exports = fs_rm;
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc