{"_id":"@tapjs/chdir","_rev":"4059757","name":"@tapjs/chdir","description":"a built-in tap extension for t.chdir()","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"time":{"modified":"2025-09-24T04:17:35.000Z","created":"2024-06-06T02:04:31.785Z","3.0.1":"2025-02-19T23:17:06.988Z","3.0.0":"2024-07-08T23:20:08.781Z","2.0.3":"2024-06-30T05:18:37.591Z","2.0.2":"2024-06-28T16:15:00.596Z","2.0.1":"2024-06-25T15:17:20.029Z","2.0.0":"2024-06-24T21:18:34.797Z","1.1.4":"2024-06-11T19:19:35.072Z","1.1.3":"2024-06-10T21:46:13.659Z","1.1.2":"2024-06-10T06:28:39.164Z","1.1.1":"2024-06-06T02:45:15.742Z","1.1.0":"2024-06-06T02:04:31.785Z"},"users":{},"author":{"name":"Isaac Z. Schlueter"},"repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"versions":{"3.0.1":{"name":"@tapjs/chdir","version":"3.0.1","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"4.0.1"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"_id":"@tapjs/chdir@3.0.1","gitHead":"532287f65d814c7cb7872bf84b3d86b17d900e43","_nodeVersion":"22.10.0","_npmVersion":"11.0.0","dist":{"shasum":"5f47746ba5bf0df87eec7693adf8914dbb405479","size":3430,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-3.0.1.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chdir_3.0.1_1740007026783_0.08934131910342358"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-19T23:17:06.988Z","publish_time":1740007026988,"_source_registry_name":"default","_cnpm_publish_time":1740007026988},"3.0.0":{"name":"@tapjs/chdir","version":"3.0.0","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"4.0.0"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"_id":"@tapjs/chdir@3.0.0","gitHead":"f4c46d4e0c4489b30cbc79391257cecafa95063b","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"90c807877acda6e181ead7fbe2f5ce521232a3b5","size":3427,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-3.0.0.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_3.0.0_1720480808628_0.12301752124101051"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-08T23:20:08.781Z","publish_time":1720480808781,"_source_registry_name":"default","_cnpm_publish_time":1720480808781},"2.0.3":{"name":"@tapjs/chdir","version":"2.0.3","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"source":"./src/index.ts","types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"3.0.3"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"engines":{"node":">= 18.6.0"},"_id":"@tapjs/chdir@2.0.3","gitHead":"161ff8ad86b438da40914bb488276b6e2b1970d4","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"b1cef01b17d87745e8a2acd83c7ee3a8cbec90ed","size":3428,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-2.0.3.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_2.0.3_1719724717443_0.5625524561214807"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-30T05:18:37.591Z","publish_time":1719724717591,"_source_registry_name":"default","maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_cnpm_publish_time":1719724717591},"2.0.2":{"name":"@tapjs/chdir","version":"2.0.2","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"source":"./src/index.ts","types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"3.0.2"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"engines":{"node":">= 18.6.0"},"_id":"@tapjs/chdir@2.0.2","gitHead":"b0400debe1ac8082ceaa2fe39e8b14e6db1c6f4b","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"0e2f201513e3c9dcee228a38dab4c758d8a88a2f","size":3428,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-2.0.2.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_2.0.2_1719591300406_0.1145570456695737"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-28T16:15:00.596Z","publish_time":1719591300596,"_source_registry_name":"default","maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_cnpm_publish_time":1719591300596},"2.0.1":{"name":"@tapjs/chdir","version":"2.0.1","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"source":"./src/index.ts","types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"3.0.1"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"engines":{"node":">= 18.6.0"},"_id":"@tapjs/chdir@2.0.1","gitHead":"a6f7df418af2fed1317d0f580ba7cbca830e97a9","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"e46ed8f1f0dbb251f9f992fec596894903f826dd","size":3428,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-2.0.1.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_2.0.1_1719328639868_0.8988814556268871"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-25T15:17:20.029Z","publish_time":1719328640029,"_source_registry_name":"default","maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_cnpm_publish_time":1719328640029},"2.0.0":{"name":"@tapjs/chdir","version":"2.0.0","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"source":"./src/index.ts","types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"3.0.0"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"engines":{"node":">= 18.6.0"},"_id":"@tapjs/chdir@2.0.0","gitHead":"7c022d052fef858727bb58dc37f508a76a6e062b","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"3414c0ad2fa2a2be9da51fde50c9fdd98ac834b6","size":3423,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-2.0.0.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_2.0.0_1719263914609_0.2547677266537889"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-24T21:18:34.797Z","publish_time":1719263914797,"_source_registry_name":"default","maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_cnpm_publish_time":1719263914797},"1.1.4":{"name":"@tapjs/chdir","version":"1.1.4","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"2.1.6"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","engines":{"node":"16 >=16.17.0 || 18 >= 18.6.0 || >=20"},"repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"_id":"@tapjs/chdir@1.1.4","gitHead":"6bb8d64d661a716de6030b4ad8a5d235816dfb1c","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"f1d37fea300b390879556053d6017912308bc40a","size":3443,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-1.1.4.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_1.1.4_1718133574910_0.4350404482314123"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-11T19:19:35.072Z","publish_time":1718133575072,"_source_registry_name":"default","_cnpm_publish_time":1718133575072},"1.1.3":{"name":"@tapjs/chdir","version":"1.1.3","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"2.1.5"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","engines":{"node":"16 >=16.17.0 || 18 >= 18.6.0 || >=20"},"repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"_id":"@tapjs/chdir@1.1.3","gitHead":"2c889bb645cc10de1adfb5d8ae743e7e040cde9a","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"90ca1989fc80869a37f234652e08bb5e1d9c98a6","size":3443,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-1.1.3.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_1.1.3_1718055973364_0.7268215906776163"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-10T21:46:13.659Z","publish_time":1718055973659,"_source_registry_name":"default","_cnpm_publish_time":1718055973659},"1.1.2":{"name":"@tapjs/chdir","version":"1.1.2","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"2.1.4"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","engines":{"node":"16 >=16.17.0 || 18 >= 18.6.0 || >=20"},"repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"_id":"@tapjs/chdir@1.1.2","gitHead":"c2005faa1532fe1bb99ee109b1a64d4a94677459","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"82ec20592e1c3f2e4bb18acc82b0af90f6f57aa7","size":3442,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-1.1.2.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_1.1.2_1718000918892_0.7755566169298271"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-10T06:28:39.164Z","publish_time":1718000919164,"_source_registry_name":"default","_cnpm_publish_time":1718000919164},"1.1.1":{"name":"@tapjs/chdir","version":"1.1.1","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","dependencies":{"@tapjs/after":"1.1.28"},"peerDependencies":{"@tapjs/core":"2.1.3"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","engines":{"node":"16 >=16.17.0 || 18 >= 18.6.0 || >=20"},"repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"_id":"@tapjs/chdir@1.1.1","gitHead":"b540d4e25a266ab91a24831514110fe767c1fdce","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"92e6e02d468a12baacddf9681b7b8369096ef806","size":3407,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-1.1.1.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_1.1.1_1717641915553_0.6991455383200718"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-06T02:45:15.742Z","publish_time":1717641915742,"_source_registry_name":"default","_cnpm_publish_time":1717641915742},"1.1.0":{"name":"@tapjs/chdir","version":"1.1.0","description":"a built-in tap extension for t.chdir()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","dependencies":{"@tapjs/after":"1.1.27"},"peerDependencies":{"@tapjs/core":"2.1.2"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","engines":{"node":"16 >=16.17.0 || 18 >= 18.6.0 || >=20"},"repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"_id":"@tapjs/chdir@1.1.0","gitHead":"42f02afe1f3a6d529c8e79377bd0eb9baf12c076","_nodeVersion":"20.13.1","_npmVersion":"10.7.0","dist":{"shasum":"1ba386ac622c47987a75c9444953128997a1f07c","size":3339,"noattachment":false,"key":"/@tapjs/chdir/-/@tapjs/chdir-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tapjs/chdir/download/@tapjs/chdir-1.1.0.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chdir_1.1.0_1717639471612_0.9143425640409666"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-06T02:04:31.785Z","publish_time":1717639471785,"_source_registry_name":"default","_cnpm_publish_time":1717639471785}},"readme":"# `@tapjs/chdir`\n\nA default tap plugin for changing the working directory for the\ncontext of a single test, and then returning to the original\nworking directory when the test is over.\n\n## Usage\n\n```js\nimport t from 'tap'\n\nt.test('using t.chdir() example', t => {\n  const dir = t.testdir({\n    'some-file.txt': 'hello',\n  })\n  t.chdir(dir)\n  t.equal(readFileSync('./some-file.txt', 'utf8'), 'hello')\n  t.equal(process.cwd(), t.testdirName)\n  // when the test ends, the original working dir is restored\n  t.end()\n})\n\n// without this plugin, you'd have to do it this way:\nt.test('without t.chdir() example', t => {\n  const dir = t.testdir({\n    'some-file.txt': 'hello',\n  })\n  const cwd = process.cwd()\n  t.teardown(() => process.chdir(cwd))\n  process.chdir(dir)\n  // run tests...\n  t.end()\n})\n```\n\n## API\n\n- `t.chdir(dir: string)` Change the process working directory to\n  the supplied path. When the test ends, the original dir is\n  restored.\n","_attachments":{},"homepage":"https://github.com/tapjs/tapjs/src/intercept#readme","bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"license":"BlueOak-1.0.0"}