{"name":"disposable-directory","version":"5.0.1","description":"Asynchronously creates a disposable directory in the OS temporary directory that gets deleted after the callback is done or errors.","license":"MIT","author":{"name":"Jayden Seric","email":"me@jaydenseric.com","url":"https://jaydenseric.com"},"repository":{"type":"git","url":"git+https://github.com/jaydenseric/disposable-directory.git"},"homepage":"https://github.com/jaydenseric/disposable-directory#readme","bugs":{"url":"https://github.com/jaydenseric/disposable-directory/issues"},"funding":"https://github.com/sponsors/jaydenseric","keywords":["disposable","temporary","directory","tmp","dir","esm","mjs"],"sideEffects":false,"main":"./disposableDirectory.mjs","exports":{".":"./disposableDirectory.mjs","./disposableDirectory.mjs":"./disposableDirectory.mjs","./package.json":"./package.json"},"engines":{"node":"^12.22.0 || ^14.17.0 || >= 16.0.0"},"dependencies":{"@types/node":"*"},"devDependencies":{"coverage-node":"^5.0.1","eslint":"^8.5.0","eslint-config-env":"^23.0.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-jsdoc":"^37.4.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","jsdoc-md":"^11.0.2","prettier":"^2.5.1","test-director":"^8.0.1","typescript":"^4.6.0-dev.20211226"},"scripts":{"docs-update":"jsdoc-md","docs-check":"jsdoc-md -c","eslint":"eslint .","prettier":"prettier -c .","types":"tsc -p jsconfig.json","tests":"coverage-node test.mjs","test":"npm run eslint && npm run prettier && npm run types && npm run docs-check && npm run tests","prepublishOnly":"npm test"},"gitHead":"f0542957879d4925fd084200e4b7576a87d053b6","_id":"disposable-directory@5.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-MNsrQy1VTHQCRqZ2rlsCjgwhptEd7Aa47yx2nS8CSNw3KGJkvqMKjonW2SGh2yiymKBDN6ryl5uVqL7xlxfg3g==","shasum":"3d84b7d83342180620889a78a99746bee96a7241","tarball":"http://registry-npm.ywwl.com/disposable-directory/download/disposable-directory-5.0.1.tgz","fileCount":5,"unpackedSize":6671,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyFgwCRA9TVsSAnZWagAAOtUP+weyPX4UaklWONQ0MYZw\nSXyEXu7QbaSgZ73zm0387EKEx/RG0KVMse08pByFkFIwAlymAq2NnNvg6nhr\nNvJeobXCH/s0Okk0OEgG+FeyZ0e3zByKmYSeV6q7svy5AlZK+ekDbwJhlx4h\nrl4RdKJ50GcOeAAOyGpVUzol7w4Mk4pnEDHXXBwKM4m1iBFK5AwvlqFhgsEF\nI7SX/zBG5NTUIcnqqSSQIB8FVsRCC8Yj7BpXgGFReXDjAXHYitcxlCetzU0v\nNimqXfCjsFgagk4Bxq7hxyrbEcgzII5b5QOlAzzwRxkddVwcaRvp/Xg9rwUW\nFEx+cnpzh4qkVREUNO0K5u7aXiuEofIV0DjqUY6VtXJ5FZWiu1uXehxUBwrg\ns50whx27HfV/X1cnlWRlMbHUzSmvegtlhakgRF/XI3s+aN4HjHp4L0PuR4rd\ncYtBN/xFxJSLOHHEujhSEoPTMiJVeCUwM95A1UuloCZSXJ7rjJ8S+JX8Y7Hd\nGHgF9bz4gdmBpmWHWlPf0tBu5SNSLVurkhpzCxeSPEEEyQpSUmUjmlD07ERE\n3czciav1p/3PfQCJtlhxMPdUYIrmO/g3G1/WRJXgC0ZGFmSrJuHER8SIn83z\nCoETEpMISBxFvEAOj1BYku4UYwOGYMgnZWfnxAJZamC5BcSS1JkD50zU4uVJ\nYqC9\r\n=toO1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDju/R0/JjUu3tIwLo+4P4TcmeZkCYe8u7Ku+Y1MzTYJAIhAMGpCe1w1oFQ0I1pdcaIS6UL6EBS0llZWEf3Z3ZZazwY"}],"size":2185,"noattachment":false,"key":"/disposable-directory/-/disposable-directory-5.0.1.tgz"},"_npmUser":{"name":"jaydenseric","email":"me@jaydenseric.com"},"directories":{},"maintainers":[{"name":"jaydenseric","email":"me@jaydenseric.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/disposable-directory_5.0.1_1640519727950_0.43524368594332974"},"_hasShrinkwrap":false,"readme":"# disposable-directory\n\nAsynchronously creates a disposable directory in the OS temporary directory that gets deleted after the callback is done or errors.\n\n## Installation\n\nTo install [`disposable-directory`](https://npm.im/disposable-directory) with [npm](https://npmjs.com/get-npm), run:\n\n```sh\nnpm install disposable-directory\n```\n\nThen, import and use the function [`disposableDirectory`](./disposableDirectory.mjs).\n\n## Examples\n\nHow to use a disposable directory:\n\n```js\nimport disposableDirectory from \"disposable-directory\";\n\ndisposableDirectory(async (directoryPath) => {\n  // Use the directory here.\n})\n  .then(() => {\n    // The directory is gone.\n  })\n  .catch(() => {\n    // The directory is gone.\n  });\n```\n\n## Requirements\n\nSupported operating systems:\n\n- Linux\n- macOS\n\nSupported runtime environments:\n\n- [Node.js](https://nodejs.org) versions `^14.17.0 || ^16.0.0 || >= 18.0.0`.\n\nProjects must configure [TypeScript](https://typescriptlang.org) to use types from the ECMAScript modules that have a `// @ts-check` comment:\n\n- [`compilerOptions.allowJs`](https://typescriptlang.org/tsconfig#allowJs) should be `true`.\n- [`compilerOptions.maxNodeModuleJsDepth`](https://typescriptlang.org/tsconfig#maxNodeModuleJsDepth) should be reasonably large, e.g. `10`.\n- [`compilerOptions.module`](https://typescriptlang.org/tsconfig#module) should be `\"node16\"` or `\"nodenext\"`.\n\n## Exports\n\nThe [npm](https://npmjs.com) package [`disposable-directory`](https://npm.im/disposable-directory) features [optimal JavaScript module design](https://jaydenseric.com/blog/optimal-javascript-module-design). These ECMAScript modules are exported via the [`package.json`](./package.json) field [`exports`](https://nodejs.org/api/packages.html#exports):\n\n- [`disposableDirectory.mjs`](./disposableDirectory.mjs)\n","publish_time":1640519728064,"_cnpm_publish_time":1640519728064,"dist-tags":{"latest":"6.0.0"}}