{"name":"disposable-directory","version":"3.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"],"main":"public","exports":{".":{"import":"./public/index.mjs","require":"./public/index.js"},"./public/":"./public/","./package":"./package.json","./package.json":"./package.json"},"engines":{"node":"^10.17.0 || ^12.0.0 || >= 13.7.0"},"devDependencies":{"coverage-node":"^3.0.0","eslint":"^7.12.1","eslint-config-env":"^15.0.1","eslint-config-prettier":"^6.15.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jsdoc":"^30.7.3","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","hard-rejection":"^2.1.0","jsdoc-md":"^7.0.0","prettier":"^2.1.2","test-director":"^4.0.1"},"scripts":{"prepare":"npm run prepare:jsdoc && npm run prepare:prettier","prepare:jsdoc":"jsdoc-md","prepare:prettier":"prettier --write readme.md","test":"npm run test:eslint && npm run test:prettier && npm run test:api","test:eslint":"eslint --ext mjs,js .","test:prettier":"prettier -c .","test:api":"coverage-node -r hard-rejection/register test","prepublishOnly":"npm test"},"gitHead":"12ae147f48043aa119d06785d2d9448647afa4b8","_id":"disposable-directory@3.0.0","_nodeVersion":"15.0.1","_npmVersion":"7.0.3","dist":{"integrity":"sha512-GZCImpo7uCqxJViw9wr0XWunUX+nY5mXxVeOp2xMSRUJ8NI8xWuoXmr81VVH4djQQcTfeLH6YxfZUE0yahgEOA==","shasum":"70690f86c293c86c40c4dd1a24ec713fe9417be8","tarball":"http://registry-npm.ywwl.com/disposable-directory/download/disposable-directory-3.0.0.tgz","fileCount":8,"unpackedSize":8419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmRo/CRA9TVsSAnZWagAAZwgP/iQftAXc6ojFnC4Dbodm\nqnmlQ8QNn4TAMyieQ/ubNycOrOhEniSk6vuCKugqAJkkYmVTXZvqOLQxUfPM\nlNEkfHqIxYC95/10NUZgfAg+fgyA1QjmAm91ILXNt0zOq+WcC7sE0fMzHa3f\nmCy/J/tyhmJQ8KFeAfByJMUG761i7EgcywV+jhBeUppakQHw3H/BfkYvbPfu\n1fQUuUmUqpbzmpji3vK4t+VtlPnitLTj8CIxGKY6wJrfhC0PpN+d7W3txY5F\n3f1P6UHAi5AR4ANUWHjKdy1/Zw3ErOnLKWjwi4JPP0nY6j/7GS8AEemQ7bAE\ncGm3ySjT4pkUF6gf7teiJl3tTS2tSqx23QrgWyDSNHXi9z9kla1wWMN9DJCu\nM9exHR6PvNYkkHx1A6NuFKnXOgSaLJ0Fhlim6jcgsyOLzBDPQMB1YF3UCFGe\nYyx6EHttmuE3vGMuX9huwYBUeNXrkroW+8q4Ejz95daGQUJR3pZdgQPCALHx\njYogXSOLsetqM+qs834/MtvzUqfZuOywve8Q7JviaVogwkvQrRDZab/a0REZ\nAaCoOF2XDHCYLtZeBk3XP5AVEbNZHPpKWQ+VSJCRAMdEqRuXuVUB3TSIPJ2x\nNcoEplBRSu4wjjJSO0ygAFG7lEdWhttuWGXHclvjWBJzgrY+xbt6Ht7QFijO\nChn5\r\n=eiS2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICh/sov2EM1cRVKSIULUhO/MofPRT+rYk+dTjgpP0LSZAiB+tVzgovhi7zg2vGiG99BQdibdlsWTIiOC6DS9Esi1fw=="}],"size":2921,"noattachment":false,"key":"/disposable-directory/-/disposable-directory-3.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_3.0.0_1603869246747_0.9383640233030728"},"_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":1603869246922,"_cnpm_publish_time":1603869246922,"dist-tags":{"latest":"6.0.0"}}