Skip to content
Check if a path is the current working directory
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore Support Node.js 4 (#1) Aug 2, 2017
.npmrc
.travis.yml Add Node.js 12 to testing (#7) Apr 26, 2019
index.d.ts
index.js
index.test-d.ts Add TypeScript definition (#6) Apr 20, 2019
license Support Node.js 4 (#1) Aug 2, 2017
package.json 2.2.0 Jul 5, 2019
readme.md
test.js Make the check case-insensitive on Windows (#8) Jul 5, 2019

readme.md

is-path-cwd Build Status

Check if a path is the current working directory

Install

$ npm install is-path-cwd

Usage

const isPathCwd = require('is-path-cwd');

isPathCwd(process.cwd());
//=> true

isPathCwd('unicorn');
//=> false

License

MIT © Sindre Sorhus

You can’t perform that action at this time.