{"_id":"@altano/disposable-directory","_rev":"3-1cdb433ee359058af4343af31c9fbf7d","name":"@altano/disposable-directory","dist-tags":{"beta":"0.0.0-beta.1","latest":"0.0.3"},"versions":{"0.0.0-beta.1":{"name":"@altano/disposable-directory","version":"0.0.0-beta.1","keywords":["directory","temporary","disposable"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/disposable-directory@0.0.0-beta.1","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/disposable-directory","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"153dc3363c6333986c488554df3fcbbd845fb551","tarball":"https://registry.npmjs.org/@altano/disposable-directory/-/disposable-directory-0.0.0-beta.1.tgz","fileCount":7,"integrity":"sha512-XwfG5G73sJqKm5DSHijuIy/jPV2zY2tdeSj62glaIPmiRb/kGQ/M3Wp8RJzp1HncSsCHbGGbD081rA57lHFIUQ==","signatures":[{"sig":"MEYCIQCe0239Mxq6cRmBOevGwBOY8cA7xnfhlXKKhngXNsHAEAIhAIs1ICctOtYRRuFEmLPNIApUqsUmDMbiTI4Xnfmzm+mM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5151},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":"./dist/index.js","./*":"./dist/*"},"gitHead":"e1ac7f4e07bc0d21e0a6ed4f44588a719a66ad5e","scripts":{"dev":"pnpm run build --watch","lint":"eslint","build":"tsdown --config-loader unrun --config ../build-config/tsdown.config.node.ts","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --check src","lint:fix":"TIMING=1 pnpm lint --fix","test:unit":"vitest --run","format:fix":"prettier --write src","test:build":"./tests/scripts/createRepositoryBundles.ts","lint:timing":"TIMING=1 pnpm lint","check:exports":"attw --pack . --profile esm-only --quiet","check:types:src":"tsc --noEmit","test:unit:watch":"vitest","check:types:test":"tsc --noEmit --project ./tests/tsconfig.json","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"altano","email":"altano@gmail.com"},"repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/disposable-directory"},"_npmVersion":"11.11.0","description":"Create a temporary, disposable directory that automatically gets cleaned up when the function scope exits. Uses the new `Symbol.asyncDispose` APIs","directories":{},"sideEffects":false,"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"catalog:","eslint":"catalog:","tsdown":"catalog:","vitest":"catalog:","depcheck":"catalog:","prettier":"catalog:","typescript":"catalog:","@types/node":"catalog:","@vitest/expect":"catalog:","@altano/testing":"workspace:*","@altano/tsconfig":"workspace:*","@vitest/coverage-v8":"catalog:","@altano/build-config":"workspace:*","@arethetypeswrong/cli":"catalog:"},"_npmOperationalInternal":{"tmp":"tmp/disposable-directory_0.0.0-beta.1_1774243027807_0.23450512183632366","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@altano/disposable-directory","version":"0.0.2","keywords":["directory","temporary","disposable"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/disposable-directory@0.0.2","maintainers":[{"name":"altano","email":"alan@norbauer.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/disposable-directory","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"3e3d5bc29324e6a9d295604c7ce23a21d9c4a1d6","tarball":"https://registry.npmjs.org/@altano/disposable-directory/-/disposable-directory-0.0.2.tgz","fileCount":7,"integrity":"sha512-Z0zzJ+w0EkWJxW+U4Otf+cDfji3SnH8nydV6Myt0SfvYFLYpw5IehFWbWPEV0vTx96RsyaznNfGDHJA7qqImgA==","signatures":[{"sig":"MEYCIQCaPrwkxy4HwCLCQ8X5dFHrNyMrVo4aRq3rc7QgRIsJTgIhAMPQKH1rLquf/cjCvoAj4iPnRfI57dS9YCg0d3ueHa+g","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altano%2fdisposable-directory@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5107},"main":"./dist/index.js","type":"module","_from":"file:altano-disposable-directory-0.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=24"},"exports":{".":"./dist/index.js","./*":"./dist/*"},"scripts":{"dev":"pnpm run build --watch","lint":"eslint","build":"tsdown --config-loader unrun --config ../build-config/tsdown.config.node.ts","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --check src","lint:fix":"TIMING=1 pnpm lint --fix","test:unit":"vitest --run","format:fix":"prettier --write src","test:build":"./tests/scripts/createRepositoryBundles.ts","lint:timing":"TIMING=1 pnpm lint","check:exports":"attw --pack . --profile esm-only --quiet","check:types:src":"tsc --noEmit","test:unit:watch":"vitest","check:types:test":"tsc --noEmit --project ./tests/tsconfig.json","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1d6a98c4-e41b-437e-93ed-501cb64e9e8c"}},"_resolved":"/tmp/9414aad03293b49425d9fc63d0c6f165/altano-disposable-directory-0.0.2.tgz","_integrity":"sha512-Z0zzJ+w0EkWJxW+U4Otf+cDfji3SnH8nydV6Myt0SfvYFLYpw5IehFWbWPEV0vTx96RsyaznNfGDHJA7qqImgA==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/disposable-directory"},"_npmVersion":"11.11.0","description":"Create a temporary, disposable directory that automatically gets cleaned up when the function scope exits. Uses the new `Symbol.asyncDispose` APIs","directories":{},"sideEffects":false,"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","eslint":"^9.39.4","tsdown":"^0.21.4","vitest":"^4.1.0","depcheck":"^1.4.7","prettier":"^3.8.1","typescript":"^5.9.3","@types/node":"^25.5.0","@vitest/expect":"^4.1.0","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@vitest/coverage-v8":"^4.1.0","@altano/build-config":"0.0.1","@arethetypeswrong/cli":"^0.18.2"},"_npmOperationalInternal":{"tmp":"tmp/disposable-directory_0.0.2_1774243933583_0.8267221343010813","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@altano/disposable-directory","version":"0.0.3","description":"Create a temporary, disposable directory that automatically gets cleaned up when the function scope exits. Uses the new `Symbol.asyncDispose` APIs","keywords":["directory","temporary","disposable"],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/disposable-directory","repository":{"type":"git","url":"https://github.com/altano/npm-packages","directory":"packages/disposable-directory"},"license":"ISC","author":{"name":"Alan Norbauer","email":"alan@norbauer.com","url":"https://alan.norbauer.com"},"sideEffects":false,"type":"module","exports":{".":"./dist/index.js","./*":"./dist/*"},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","devDependencies":{"@arethetypeswrong/cli":"^0.18.5","@types/node":"^26.1.1","@vitest/coverage-v8":"^4.1.10","@vitest/expect":"^4.1.10","depcheck":"^1.4.7","eslint":"^9.39.5","prettier":"3.9.6","tsdown":"^0.22.13","typescript":"^6.0.3","vite":"^8.1.5","vitest":"^4.1.10","@altano/build-config":"0.0.1","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1"},"engines":{"node":">=24"},"publishConfig":{"access":"public"},"scripts":{"build":"tsdown","check:exports":"attw --pack . --profile esm-only --quiet","check:types:src":"tsc --noEmit","check:types:test":"tsc --noEmit --project ./tests/tsconfig.json","check:unused-dependencies":"depcheck","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","dev":"pnpm run build --watch","format":"prettier --check .","format:fix":"prettier --write .","lint":"eslint","lint:fix":"TIMING=1 pnpm lint --fix","lint:timing":"TIMING=1 pnpm lint","test:build":"./tests/scripts/createRepositoryBundles.ts","test:unit":"vitest --run","test:unit:watch":"vitest"},"_nodeVersion":"24.18.0","_id":"@altano/disposable-directory@0.0.3","dist":{"integrity":"sha512-swXKkQqRUEgqnYhDUoDTzR7nZ4e6gMl5qPcLokOx1rO3zVGJ52/TYhVYQMIl67VDmx7sFtbajdVqd89ua5NChA==","shasum":"e0edc8efd54cc4449f87814429f7c3c8fb34ec26","tarball":"https://registry.npmjs.org/@altano/disposable-directory/-/disposable-directory-0.0.3.tgz","fileCount":7,"unpackedSize":5047,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altano%2fdisposable-directory@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDCHvWBMjtOzEmAXh0zdw4IZUxWj4GAAVM+UC+SktefBQIhAKRDq0Kl6AiDPKupsRzyxUXyef5sSm07f6tHjIvXOCfc"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1d6a98c4-e41b-437e-93ed-501cb64e9e8c"}},"directories":{},"maintainers":[{"name":"altano","email":"alan@norbauer.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/disposable-directory_0.0.3_1785618463454_0.9356746180784534"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-23T05:17:07.673Z","modified":"2026-08-01T21:07:43.936Z","0.0.0-beta.1":"2026-03-23T05:17:07.990Z","0.0.2":"2026-03-23T05:32:13.788Z","0.0.3":"2026-08-01T21:07:43.590Z"},"author":{"name":"Alan Norbauer","email":"alan@norbauer.com","url":"https://alan.norbauer.com"},"license":"ISC","homepage":"https://github.com/altano/npm-packages/tree/main/packages/disposable-directory","keywords":["directory","temporary","disposable"],"repository":{"type":"git","url":"https://github.com/altano/npm-packages","directory":"packages/disposable-directory"},"description":"Create a temporary, disposable directory that automatically gets cleaned up when the function scope exits. Uses the new `Symbol.asyncDispose` APIs","maintainers":[{"name":"altano","email":"alan@norbauer.com"}],"readme":"# disposable-directory\n\n[![npm](https://badgen.net/npm/v/@altano/disposable-directory)](https://www.npmjs.com/package/@altano/disposable-directory) ![Typed with TypeScript](https://badgen.net/npm/types/@altano/disposable-directory) ![ESM only](https://badgen.net/badge/module/esm%20only?icon=js)\n\nSimple utility for getting a disposable, temporary directory in a Node.js-compatible environment. Directory is cleaned up automatically when the function scope exists.\n\nUses the new `Symbol.asyncDispose` API and therefore requires Node.js 24+.\n\n## Example\n\n```ts\nasync function doSomething() {\n  // This creates a directory\n  await using tempDir = await getDisposableDirectory();\n\n  // the directory exists for the scope of this function\n  console.log(tempDir);\n\n  // No cleanup is required. The directory will implicitly be deleted when this function exits (or throws an error).\n}\n```\n","readmeFilename":""}