|
|
%!s(int64=3) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| index.d.ts | %!s(int64=3) %!d(string=hai) anos | |
| index.js | %!s(int64=3) %!d(string=hai) anos | |
| license | %!s(int64=3) %!d(string=hai) anos | |
| package.json | %!s(int64=3) %!d(string=hai) anos | |
| readme.md | %!s(int64=3) %!d(string=hai) anos | |
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 © Sindre Sorhus