Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-path-cwd

sindresorhus49.8mMIT4.0.1TypeScript support: included

Check if a path is the current working directory

path, cwd, pwd, check, filepath, file, folder

readme

is-path-cwd

Check if a path is the current working directory

Install

npm install is-path-cwd

Usage

import isPathCwd from 'is-path-cwd';

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

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