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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
index.d.ts | 第一次提交等待部署 | |
index.js | 第一次提交等待部署 | |
license | 第一次提交等待部署 | |
package.json | 第一次提交等待部署 | |
readme.md | 第一次提交等待部署 |
Check if a path is the current working directory
$ npm install is-path-cwd
const isPathCwd = require('is-path-cwd');
isPathCwd(process.cwd());
//=> true
isPathCwd('unicorn');
//=> false
MIT