Check if a path is the current working directory
npm install is-path-cwdimport isPathCwd from 'is-path-cwd';
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false| Name | Name | Last commit date | ||
|---|---|---|---|---|
Check if a path is the current working directory
npm install is-path-cwdimport isPathCwd from 'is-path-cwd';
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false