{"_id":"is-path-cwd","_rev":"3874662","name":"is-path-cwd","description":"Check if a path is the current working directory","dist-tags":{"latest":"4.0.1"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2025-09-01T00:57:27.000Z","created":"2014-06-19T09:53:17.658Z","4.0.1":"2025-05-10T16:23:34.377Z","4.0.0":"2025-05-10T07:29:07.302Z","3.0.0":"2021-08-11T12:54:54.452Z","2.2.0":"2019-07-05T17:21:06.182Z","2.1.0":"2019-04-20T07:59:21.705Z","2.0.0":"2018-03-22T15:36:10.886Z","1.0.0":"2014-08-14T09:47:37.874Z","0.1.0":"2014-06-19T09:53:17.658Z"},"users":{"itonyyo":true,"rocket0191":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-cwd.git"},"versions":{"4.0.1":{"name":"is-path-cwd","version":"4.0.1","description":"Check if a path is the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-cwd.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"ava":"^6.3.0","tsd":"^0.32.0","xo":"^0.60.0"},"_id":"is-path-cwd@4.0.1","gitHead":"2ca818e9e1f097ba5b49c8a53933f2b279547871","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"02f00109330c259444205a9526cca3cf90610894","size":1482,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-4.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-path-cwd_4.0.1_1746894214146_0.0635969829777463"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-10T16:23:34.377Z","publish_time":1746894214377,"_source_registry_name":"default","_cnpm_publish_time":1746894214377},"4.0.0":{"name":"is-path-cwd","version":"4.0.0","description":"Check if a path is the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-cwd.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"ava":"^6.3.0","tsd":"^0.32.0","xo":"^0.60.0"},"_id":"is-path-cwd@4.0.0","gitHead":"8a1b1c405f8cf62ba22e6bc7a362348e9fc5d88e","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"f77cc9b74b3c00988cf5b85a23b38f4f23dd6a96","size":1497,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-path-cwd_4.0.0_1746862147113_0.6873217834650402"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-10T07:29:07.302Z","publish_time":1746862147302,"_source_registry_name":"default","_cnpm_publish_time":1746862147302},"3.0.0":{"name":"is-path-cwd","version":"3.0.0","description":"Check if a path is the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-cwd.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"a052163c5065fe2fec7b282564e04cb4b3e70706","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd#readme","_id":"is-path-cwd@3.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.10.0","dist":{"shasum":"889b41e55c8588b1eb2a96a61d05740a674521c7","size":1753,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-cwd_3.0.0_1628686494342_0.20161420114154405"},"_hasShrinkwrap":false,"publish_time":1628686494452,"_cnpm_publish_time":1628686494452},"2.2.0":{"name":"is-path-cwd","version":"2.2.0","description":"Check if a path is the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-cwd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"d4d1b6174ab30017d476b0210a5b01e69b3c076a","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd#readme","_id":"is-path-cwd@2.2.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"67d43b82664a7b5191fd9119127eb300048a9fdb","size":1560,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-cwd_2.2.0_1562347266074_0.8247780777418467"},"_hasShrinkwrap":false,"publish_time":1562347266182,"_cnpm_publish_time":1562347266182},"2.1.0":{"name":"is-path-cwd","version":"2.1.0","description":"Check if a path is the current working directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-cwd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"975502785291dac455eb9f0cd2da196564240dbb","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd#readme","_id":"is-path-cwd@2.1.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2e0c7e463ff5b7a0eb60852d851a6809347a124c","size":1492,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-cwd_2.1.0_1555747161479_0.6607062934508494"},"_hasShrinkwrap":false,"publish_time":1555747161705,"_cnpm_publish_time":1555747161705},"2.0.0":{"name":"is-path-cwd","version":"2.0.0","description":"Check if a path is CWD","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-path-cwd.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"0ffd9c312b517b0067597e369d3e370361263578","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd#readme","_id":"is-path-cwd@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d4777a8e227a00096a31f030db3770f84b116c02","size":1376,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-path-cwd_2.0.0_1521732970847_0.6802231486154835"},"_hasShrinkwrap":false,"publish_time":1521732970886,"_cnpm_publish_time":1521732970886},"1.0.0":{"name":"is-path-cwd","version":"1.0.0","description":"Check if a path is CWD","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-path-cwd"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"mocha":"*"},"gitHead":"f71d4ecaa43bfe23c9cb35af6bf31e6b5b3f04eb","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd","_id":"is-path-cwd@1.0.0","_shasum":"d225ec23132e89edd38fda767472e62e65f1106d","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"d225ec23132e89edd38fda767472e62e65f1106d","size":745,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-1.0.0.tgz"},"directories":{},"publish_time":1408009657874,"_cnpm_publish_time":1408009657874,"_hasShrinkwrap":false},"0.1.0":{"name":"is-path-cwd","version":"0.1.0","description":"Check if a path is CWD","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-path-cwd"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["path","cwd","pwd","check","filepath","file","folder"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"homepage":"https://github.com/sindresorhus/is-path-cwd","_id":"is-path-cwd@0.1.0","_shasum":"df3c09a7cab10bd40b9d1cdfae485bd882d4b1ab","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"df3c09a7cab10bd40b9d1cdfae485bd882d4b1ab","size":743,"noattachment":false,"key":"/is-path-cwd/-/is-path-cwd-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-path-cwd/download/is-path-cwd-0.1.0.tgz"},"directories":{},"publish_time":1403171597658,"_cnpm_publish_time":1403171597658,"_hasShrinkwrap":false}},"readme":"# is-path-cwd\n\n> Check if a path is the [current working directory](https://en.wikipedia.org/wiki/Working_directory)\n\n## Install\n\n```sh\nnpm install is-path-cwd\n```\n\n## Usage\n\n```js\nimport isPathCwd from 'is-path-cwd';\n\nisPathCwd(process.cwd());\n//=> true\n\nisPathCwd('unicorn');\n//=> false\n```\n","_attachments":{},"homepage":"https://github.com/sindresorhus/is-path-cwd#readme","bugs":{"url":"https://github.com/sindresorhus/is-path-cwd/issues"},"license":"MIT"}