Socket
Socket
Sign inDemoInstall

is-path-cwd

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.2.0

13

index.js
'use strict';
const path = require('path');
module.exports = path_ => path.resolve(path_) === process.cwd();
module.exports = path_ => {
let cwd = process.cwd();
path_ = path.resolve(path_);
if (process.platform === 'win32') {
cwd = cwd.toLowerCase();
path_ = path_.toLowerCase();
}
return path_ === cwd;
};

2

package.json
{
"name": "is-path-cwd",
"version": "2.1.0",
"version": "2.2.0",
"description": "Check if a path is the current working directory",

@@ -5,0 +5,0 @@ "license": "MIT",

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