is-path-cwd

Check if a path is the current working directory

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-path-cwd
3.0.03 years ago10 years agoMinified + gzip package size for is-path-cwd in KB

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

<b>
	<a href="https://tidelift.com/subscription/pkg/npm-is-path-cwd?utm_source=npm-is-path-cwd&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
	Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>