Check if a path is CWD
$ npm install --save is-path-cwdvar isPathCwd = require('is-path-cwd');
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> falseMIT © Sindre Sorhus
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Check if a path is CWD
$ npm install --save is-path-cwdvar isPathCwd = require('is-path-cwd');
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> falseMIT © Sindre Sorhus