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

empty-dir

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

empty-dir - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

10

index.js
const fs = require('fs');
const tryOpen = require('try-open');
const exists = require('fs-exists-sync');

@@ -27,3 +27,3 @@ function isEmpty(path, fn, callback) {

});
};
}

@@ -40,10 +40,6 @@ isEmpty.sync = function(path, fn) {

return files.length === 0;
} catch (err) {};
} catch (err) {}
return false;
};
function exists(path) {
return path && typeof tryOpen(path, 'r') === 'number';
}
module.exports = isEmpty;
{
"name": "empty-dir",
"description": "Check if a directory is empty.",
"version": "0.2.0",
"homepage": "https://github.com/tkellen/js-empty-dir",
"version": "0.2.1",
"homepage": "https://github.com/js-cli/js-empty-dir",
"author": "Tyler Kellen <http://goingslowly.com/>",
"repository": "tkellen/js-empty-dir",
"repository": "js-cli/js-empty-dir",
"bugs": {
"url": "https://github.com/tkellen/js-empty-dir/issues"
"url": "https://github.com/js-cli/js-empty-dir/issues"
},
"license": "MIT",
"main": "index.js",
"files": ["index.js"],
"files": [
"index.js"
],
"engines": {

@@ -21,3 +23,3 @@ "node": ">= 0.8.0"

"dependencies": {
"try-open": "^0.1.0"
"fs-exists-sync": "^0.1.0"
},

@@ -24,0 +26,0 @@ "devDependencies": {

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

# empty-dir [![Build Status](https://secure.travis-ci.org/tkellen/js-empty-dir.svg?branch=master)](http://travis-ci.org/tkellen/js-empty-dir)
# empty-dir [![Build Status](https://secure.travis-ci.org/js-cli/js-empty-dir.svg?branch=master)](http://travis-ci.org/js-cli/js-empty-dir)
> Check if a directory is empty.

@@ -3,0 +3,0 @@

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