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

io-extra

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

io-extra - npm Package Compare versions

Comparing version 0.0.8 to 0.0.10

6

io/directory.js

@@ -51,2 +51,6 @@ const fs = require('fs-promise');

function clean(directory) {
return fs.emptyDir(directory);
}
module.exports = {

@@ -60,2 +64,4 @@ path,

copy,
clean,
empty: clean,
};

2

package.json
{
"name": "io-extra",
"version": "0.0.8",
"version": "0.0.10",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -199,2 +199,3 @@ # io-extra

- [copy](#copy-directory)
- [clean](#clean-directory)

@@ -307,3 +308,21 @@ ### resolve directory fullpath

### clean directory
**clean(directory)**
Cleans directory contents.
If the directory does not exist, it is created. The directory itself is not deleted.
Empty promise is returned.
Alias: `empty()`
Example:
```js
const io = require('io-extra');
io.directory.clean('/tmp').then(() => console.log('directory cleaned.'));
```
[1]: https://www.npmjs.org/package/fs-promise
[2]: https://github.com/kevinbeaty/any-promise
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