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.0.0 to 2.1.0

index.d.ts

2

index.js
'use strict';
const path = require('path');
module.exports = input => path.resolve(input) === process.cwd();
module.exports = path_ => path.resolve(path_) === process.cwd();
{
"name": "is-path-cwd",
"version": "2.0.0",
"description": "Check if a path is CWD",
"version": "2.1.0",
"description": "Check if a path is the current working directory",
"license": "MIT",

@@ -16,6 +16,7 @@ "repository": "sindresorhus/is-path-cwd",

"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -32,5 +33,6 @@ "keywords": [

"devDependencies": {
"ava": "*",
"xo": "*"
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}
# is-path-cwd [![Build Status](https://travis-ci.org/sindresorhus/is-path-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/is-path-cwd)
> Check if a path is [CWD](https://en.wikipedia.org/wiki/Working_directory)
> Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory)

@@ -5,0 +5,0 @@

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