Socket
Socket
Sign inDemoInstall

@zkochan/rimraf

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zkochan/rimraf - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

CHANGELOG.md

11

index.js

@@ -1,2 +0,2 @@

const { promises: fs } = require('fs')
const { promises: fs, rmdirSync } = require('fs')

@@ -11,1 +11,10 @@ module.exports = async (p) => {

}
module.exports.sync = (p) => {
try {
rmdirSync(p, { recursive: true, maxRetries: 3 })
} catch (err) {
if (err.code === 'ENOTDIR' || err.code === 'ENOENT') return
throw err
}
}

6

package.json
{
"name": "@zkochan/rimraf",
"version": "2.0.0",
"version": "2.1.0",
"description": "rm -rf for Node. Similar to rimraf but returns a promise",

@@ -15,3 +15,3 @@ "main": "index.js",

"engines": {
"node": ">=8.15"
"node": ">=12.10"
},

@@ -27,4 +27,4 @@ "repository": "https://github.com/zkochan/packages/tree/master/rimraf",

"devDependencies": {
"standard": "^16.0.1"
"standard": "^16.0.3"
}
}
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