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

is-dir-equals

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-dir-equals

Are the given dirs and their contents equal?

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

is-dir-equals

What am I?

is-dir-equals is a simply utility that compares to directories and their contents to determine if they are equivalent.

How do I use this?

var isDirEquals = require('is-dir-equals');

var dir1 = './path/to/my/dir';
var dir2 = './path/to/my/other-dir';

console.log(`are ${dir1} and ${dir2} equivalent?`);
console.log(`${isDirEquals(dir1, dir2) ? 'yes' : 'no'}`);

Ref

isDirEquals(dir1: string, dir2: string, config: Object?): boolean

Config

  • ignoreHidden [false] - Ignore hidden files when comparing directories
  • verbose [false] - Print a console.error message about where the comparison fails

FAQs

Package last updated on 31 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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