Socket
Socket
Sign inDemoInstall

fs-extra-p

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-extra-p - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

21

index.js
"use strict"
const path = require("path")
const nodeFs = require("fs")
const fsExtra = require("fs-extra")

@@ -35,2 +37,19 @@ const Promise = require('bluebird-lst')

module.exports = makeFs(Promise)
const newFs = makeFs(Promise)
newFs.emptyDir = function (dir) {
return new Promise((resolve, reject) => {
nodeFs.readdir(dir, (error, files) => {
if (error == null) {
Promise.map(files, it => newFs.remove(path.join(dir, it)))
.then(resolve)
.catch(reject)
}
else {
reject(error)
}
})
})
}
module.exports = newFs

6

package.json
{
"name": "fs-extra-p",
"version": "8.0.0",
"version": "8.0.1",
"description": "fs-extra module promisified with bluebird",

@@ -8,4 +8,4 @@ "main": "index.js",

"dependencies": {
"bluebird-lst": "^1.0.8",
"fs-extra": "^8.0.0"
"bluebird-lst": "^1.0.9",
"fs-extra": "^8.0.1"
},

@@ -12,0 +12,0 @@ "engines": {

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