Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 3.0.0 to 3.0.1

6

index.js

@@ -1,6 +0,6 @@

const { rimraf } = require('rimraf')
const fs = require('fs')
module.exports = async (p) => {
try {
await rimraf(p)
await fs.promises.rmdir(p, { recursive: true, force: true })
} catch (err) {

@@ -14,3 +14,3 @@ if (err.code === 'ENOTDIR' || err.code === 'ENOENT') return

try {
rimraf.sync(p)
fs.rmdirSync(p, { recursive: true, force: true })
} catch (err) {

@@ -17,0 +17,0 @@ if (err.code === 'ENOTDIR' || err.code === 'ENOENT') return

{
"name": "@zkochan/rimraf",
"version": "3.0.0",
"version": "3.0.1",
"description": "rm -rf for Node. Similar to rimraf but returns a promise",

@@ -23,10 +23,18 @@ "main": "index.js",

"devDependencies": {
"standard": "^16.0.4"
"standard": "^16.0.4",
"tempy": "^1.0.1",
"jest": "^27.4.3"
},
"dependencies": {
"rimraf": "^5.0.7"
"jest": {
"testEnvironment": "node"
},
"standard": {
"globals": [
"test",
"expect"
]
},
"scripts": {
"test": "standard"
"test": "standard && jest"
}
}
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