is-path-cwd
Advanced tools
Comparing version 2.0.0 to 2.1.0
'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 @@ |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2614
5
16
0
3