Socket
Socket
Sign inDemoInstall

fs-extra

Package Overview
Dependencies
14
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.23.1 to 0.24.0

4

CHANGELOG.md

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

0.24.0 / 2015-08-28
-------------------
- removed alias `delete()` and `deleteSync()`. See: https://github.com/jprichardson/node-fs-extra/issues/171
0.23.1 / 2015-08-07

@@ -2,0 +6,0 @@ -------------------

2

lib/mkdirs/mkdirs.js

@@ -22,3 +22,3 @@ var fs = require('graceful-fs')

callback = callback || Function()
callback = callback || function () {}
p = path.resolve(p)

@@ -25,0 +25,0 @@

@@ -8,3 +8,3 @@ var rimraf = require('rimraf')

function remove (dir, callback) {
return callback ? rimraf(dir, callback) : rimraf(dir, Function())
return callback ? rimraf(dir, callback) : rimraf(dir, function () {})
}

@@ -14,6 +14,3 @@

remove: remove,
removeSync: removeSync,
// alias
delete: remove,
deleteSync: removeSync
removeSync: removeSync
}
{
"name": "fs-extra",
"version": "0.23.1",
"version": "0.24.0",
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.",

@@ -49,3 +49,3 @@ "homepage": "https://github.com/jprichardson/node-fs-extra",

"semver": "^4.3.6",
"standard": "4.x"
"standard": "5.x"
},

@@ -52,0 +52,0 @@ "main": "./lib/index",

@@ -379,7 +379,5 @@ Node.js: fs-extra

Alias: `delete()`
Sync: `removeSync()`
Sync: `removeSync()` / `deleteSync()`
Examples:

@@ -493,3 +491,3 @@

So, if you want to remove a file or a directory regardless of whether it has contents, just call `fs.remove(path)` or its alias `fs.delete(path)`. If you want to copy a file or a directory whether it has contents, just call `fs.copy(source, destination)`. If you want to create a directory regardless of whether its parent directories exist, just call `fs.mkdirs(path)` or `fs.mkdirp(path)`.
So, if you want to remove a file or a directory regardless of whether it has contents, just call `fs.remove(path)`. If you want to copy a file or a directory whether it has contents, just call `fs.copy(source, destination)`. If you want to create a directory regardless of whether its parent directories exist, just call `fs.mkdirs(path)` or `fs.mkdirp(path)`.

@@ -496,0 +494,0 @@

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