{"name":"disposable-directory","version":"5.0.0","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"},"devDependencies":{"@types/node":"^17.0.4","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":"^7.0.0","typescript":"^4.6.0-dev.20211225"},"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":"ebc650a868aa4d35f614eec17465499a720a0e50","_id":"disposable-directory@5.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-V4c1nJAYVC2mpFX+6udb+uuW9dUzsrZWdEBQsUBs2hVN/GvruPjlJBpbExTRdpgH61RWYpt0gV77HneWC4bEWA==","shasum":"377adca085570973a3a342e7896f68d17b12e08e","tarball":"http://registry-npm.ywwl.com/disposable-directory/download/disposable-directory-5.0.0.tgz","fileCount":5,"unpackedSize":6653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhx9YQCRA9TVsSAnZWagAA70kP/iwmH/92Pag89k0FkuHl\nRpyFOQ02aIzZbJKqDvfXMNQ7zh8cH8fErBrM2S7OjrrINhVaKjiuLjZQ4BV4\nSjih4VW3urYQrD8/9LzRfiRXA5EkMHH1N60sX0ycoJZ0w+RUuK2XBoKuHLXg\nqixrfMGBE2wQXCmflFthMrMC2zjwgWN6xqnuvXn6uGyL/zFtEjV0kQTafFqr\nPxGOEtd0JCAcTB58cbJ56IufCQ4InwcfRSre79CCjnuj5r1wI/V3khCdC3WE\nKWg4bjUOvaOm6cq11yrXZawVc0fg8u0/zojiJdnYBeCbVSjv+PEW0b1FUfsU\njvzSnMVJ8MOtgdLH+Tmg6qKIQWf3yb+BYjbdtTMghZkyUhA8UQgAsj1/VvXi\ntUcCvxy6wVMh5ehAHsTg/JcPomh5kocxBKAJnLAVdWDM6b1G7ndSVXaTVM9Y\nAp33UPq3Tt226r3QNrGHh/O8zuBO3vjSrKdacVaAyH+AA3h93dru7w0P+1ge\ns6rTUOvnhOVxvpYGrBh80Mh3xUAdvjDejGaefhh5AvjoXQ7hxaHRsNLnl4Ht\nMDV9FNi5MGpMZzRD0MEyAaQWR84TOdPqDjfHNmT9RWD5N36tvS6v90dX+VI7\nOrypsqFNCk3g7BxcniQJtU12UlEUo2CBCOuyCx/KrAnmLPYN1HeGyaYOWGBF\n2n/S\r\n=E8vQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7+STLiWJUnvH6WEhOcYb7jJjB6eQd9V4bX2mlZSLBSQIhAJ2c/PoCEGJ9PLEKd1W3k/q1KVfVJXrioFfHfuwjLyU+"}],"size":2187,"noattachment":false,"key":"/disposable-directory/-/disposable-directory-5.0.0.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.0_1640486416738_0.45973605240353366"},"_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":1640486416914,"_cnpm_publish_time":1640486416914,"dist-tags":{"latest":"6.0.0"}}