{"name":"disposable-directory","version":"1.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"],"main":"lib","engines":{"node":">=10"},"devDependencies":{"coverage-node":"^2.0.0","eslint":"^6.7.2","eslint-config-env":"^12.0.1","eslint-config-prettier":"^6.7.0","eslint-plugin-import":"^2.19.1","eslint-plugin-jsdoc":"^18.4.3","eslint-plugin-node":"^10.0.0","eslint-plugin-prettier":"^3.1.2","jsdoc-md":"^4.0.1","prettier":"^1.19.1","test-director":"^2.0.0"},"scripts":{"prepare":"npm run prepare:jsdoc && npm run prepare:prettier","prepare:jsdoc":"jsdoc-md","prepare:prettier":"prettier readme.md --write","test":"npm run test:eslint && npm run test:prettier && npm run test:api","test:eslint":"eslint .","test:prettier":"prettier '**/*.{json,yml,md}' -l","test:api":"coverage-node test","prepublishOnly":"npm test"},"_id":"disposable-directory@1.0.0","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-aoJJQdfTJgkco0U71weWZCznRPsraCJyWN80bTtDXSVfCXnDGizrc9fulLaojhoGnGgmcRQmYjbXC8TuWlE2FQ==","shasum":"24b5445d15ceb9878d04ce1e3621ee2339384a7b","tarball":"http://registry-npm.ywwl.com/disposable-directory/download/disposable-directory-1.0.0.tgz","fileCount":7,"unpackedSize":5335,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeCZLqCRA9TVsSAnZWagAAggUP+wUn8IMGuL9UdLUDnarc\nshHq48dDs6/vklYn7SwSa7GP4F5KNIgYBLkakLRxw5Gw5Si4+yi6pE6mnfhN\nclmOUxJ6Vrr3/teFAhdogI4koPIO7Nu9/Azt9ssbK9fvEj939GgrfYOgWYx3\nqvSHJmDBTbXSDHIM7JgM43e3FurAD/K3WAodfo4B9KJ5RkfMTtdFGosh3vqk\nSW1UEipHOYURSSVUQo9iLx6XRtQ3TqrLTezTuSR17gbLOga7NDAOw/YWLGLh\nA3sQJctM9eEeBXIwOb6/ukQNfpriXzvSlYv7twRYYhHh6nsnS17kOeX2D33M\n8B6PWaZJDr185ck8EECdIc18XIiTg0mXN1uYC8tO52oPLs1ThCZnoyWB9IDm\nh+C+WUoRtcmQHwbNdn2eF2FaTI7pua8oQ0yDkeNV411bG1pkkt33/OxccdWU\n1fv4cgQf5A1e+uBBXlpT219mG/n1xJe0UVKFs6txAFgITRjD74PabalRpzd0\nqvr8f2OUMNM2+4bKhbxKVRC6uEXctR3VthFpiZeJPR60Ffa3D6GzNhCHMGgG\nI6tB5Psoenx+r0bJO0zNR7h2MI58rjHtO2RGUVlUb8OQZlByyxT8+kNEprEf\nXlluqZGotUMup2fL3gjL2RUCCssrXpPTO8jlM9WXjQ/DBp7sVbhsgnpLm+zd\nn4W7\r\n=a2JT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCM3DjXtzVVYOfYBsST9Pb3mqjrFrw26G3Q5bU5b5JNVQIgHu8AjgCMHW9/ovx6CW7AvxCZM6EqUXBJRZJXCOq8ht4="}],"size":1998,"noattachment":false,"key":"/disposable-directory/-/disposable-directory-1.0.0.tgz"},"maintainers":[{"name":"jaydenseric","email":"me@jaydenseric.com"}],"_npmUser":{"name":"jaydenseric","email":"me@jaydenseric.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/disposable-directory_1.0.0_1577685738233_0.21639303825803524"},"_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":1577685738428,"_cnpm_publish_time":1577685738428,"dist-tags":{"latest":"6.0.0"}}