{"_id":"mkdirtemp","_rev":"3-017c296ba20cfe41390718500a1b1f72","name":"mkdirtemp","description":"Create a unique temporary directory.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"mkdirtemp","version":"1.0.0","description":"Create a unique temporary directory.","homepage":"https://github.com/sholladay/mkdirtemp","main":"index.js","author":{"name":"Seth Holladay","email":"me@seth-holladay.com","url":"http://seth-holladay.com"},"scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+ssh://git@github.com/sholladay/mkdirtemp.git"},"bugs":{"url":"https://github.com/sholladay/mkdirtemp/issues","email":"me@seth-holladay.com"},"engines":{"node":">=6"},"license":"MPL-2.0","files":["index.js"],"devDependencies":{"ava":"^0.18.0","eslint-config-tidy":"^0.4.0","xo":"^0.17.0"},"keywords":["fs","os","path","paths","safe","create","unique","temp","temporary","tempdir","tmpdir","dir","directory","directories","mkdir","mkdtemp"],"xo":{"extend":"tidy"},"gitHead":"61f4d26a6070d6aa4fb46cb63dc277892e3c87b6","_id":"mkdirtemp@1.0.0","_shasum":"4171b57d1e18a5e442ee1f4a7e263174ed348e1c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"sholladay","email":"me@seth-holladay.com"},"maintainers":[{"name":"sholladay","email":"me@seth-holladay.com"}],"dist":{"shasum":"4171b57d1e18a5e442ee1f4a7e263174ed348e1c","tarball":"https://registry.npmjs.org/mkdirtemp/-/mkdirtemp-1.0.0.tgz","integrity":"sha512-w90xmlFjGz0JOL1VV8e/0bjujxgWgJL7IfdVZQVICffweo2ClmOUBNdQznNcYNnKcB1LEU9O5VGmveoDLCvPMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJxljJTTTK0wofF//9J4bN82gUC1T0twERuW/tbz7cLQIgM22cGhUvTP5rKMIE7AaTLYZuXdLc25+0DbI+JWkXSjM="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mkdirtemp-1.0.0.tgz_1486277439914_0.8136291501577944"}},"1.1.0":{"name":"mkdirtemp","version":"1.1.0","description":"Create a unique temporary directory.","homepage":"https://github.com/sholladay/mkdirtemp","main":"index.js","author":{"name":"Seth Holladay","email":"me@seth-holladay.com","url":"http://seth-holladay.com"},"scripts":{"test":"xo && ava"},"repository":{"type":"git","url":"git+ssh://git@github.com/sholladay/mkdirtemp.git"},"bugs":{"url":"https://github.com/sholladay/mkdirtemp/issues","email":"me@seth-holladay.com"},"engines":{"node":">=4.8"},"license":"MPL-2.0","files":["index.js"],"devDependencies":{"ava":"^0.18.0","eslint-config-tidy":"^0.4.0","xo":"^0.17.0"},"keywords":["fs","os","path","paths","safe","create","unique","temp","temporary","tempdir","tmpdir","dir","directory","directories","mkdir","mkdtemp"],"xo":{"extend":"tidy"},"gitHead":"a4af524246a5fdf91b75ca3c56e3c072482f715f","_id":"mkdirtemp@1.1.0","_shasum":"079aa7d2e5e89488a692b03c361b26af772e9fe5","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"sholladay","email":"me@seth-holladay.com"},"maintainers":[{"name":"sholladay","email":"me@seth-holladay.com"}],"dist":{"shasum":"079aa7d2e5e89488a692b03c361b26af772e9fe5","tarball":"https://registry.npmjs.org/mkdirtemp/-/mkdirtemp-1.1.0.tgz","integrity":"sha512-x/sOQ8e3Q8YV0wrubVPJDRvEpvIbIIovxfmuwWSdbvLnomSGPwXAuk+303t/31g6SxVMO5ea3hQkzgfwA65xeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPC6XBxajqj1O+AwUlHOzEPdo26Qd01CuLJBWZJHUjfAiEAnSQYx0rYLMflgQricY3fGbt629uHNS+KebWcexVHlzA="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mkdirtemp-1.1.0.tgz_1488742574498_0.6235445272177458"}}},"readme":"# mkdirtemp [![Build status for mkdirtemp on Circle CI.](https://img.shields.io/circleci/project/sholladay/mkdirtemp/master.svg \"Circle Build Status\")](https://circleci.com/gh/sholladay/mkdirtemp \"Mkdirtemp Builds\")\n\n> Create a unique temporary directory.\n\n## Why?\n\n - Fixes the [awkward](https://github.com/nodejs/node/issues/6142) `fs.mkdtemp()` API.\n - Supports `async` and `await`.\n - Sensible defaults.\n\n## Install\n\n```sh\nnpm install mkdirtemp --save\n```\n\n## Usage\n\nGet it into your program.\n\n```js\nconst mkdirtemp = require('mkdirtemp');\n```\n\nMake a new and unique [temporary directory](http://man7.org/linux/man-pages/man3/mkdtemp.3.html).\n\n```js\nmkdirtemp().then((dirPath) => {\n   console.log(dirPath);\n   // => /var/folders/gr/qfsxs2gj0fq1ypdsfd8rj8tr0000gn/T/MKufpq\n});\n```\n\n## API\n\n### mkdirtemp(cwd)\n\nReturns a `Promise` for the path of the new directory.\n\n#### cwd\n\nType: `string`<br>\nDefault: `os.tmpdir()`\n\nParent of the new directory once it is created.\n\n## Contributing\n\nSee our [contributing guidelines](https://github.com/sholladay/mkdirtemp/blob/master/CONTRIBUTING.md \"The guidelines for participating in this project.\") for more details.\n\n1. [Fork it](https://github.com/sholladay/mkdirtemp/fork).\n2. Make a feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. [Submit a pull request](https://github.com/sholladay/mkdirtemp/compare \"Submit code to this project for review.\").\n\n## License\n\n[MPL-2.0](https://github.com/sholladay/mkdirtemp/blob/master/LICENSE \"The license for mkdirtemp.\") © [Seth Holladay](http://seth-holladay.com \"Author of mkdirtemp.\")\n\nGo make something, dang it.\n","maintainers":[{"name":"sholladay","email":"me@seth-holladay.com"}],"time":{"modified":"2022-06-19T23:31:03.732Z","created":"2017-02-05T06:50:41.659Z","1.0.0":"2017-02-05T06:50:41.659Z","1.1.0":"2017-03-05T19:36:15.177Z"},"homepage":"https://github.com/sholladay/mkdirtemp","keywords":["fs","os","path","paths","safe","create","unique","temp","temporary","tempdir","tmpdir","dir","directory","directories","mkdir","mkdtemp"],"repository":{"type":"git","url":"git+ssh://git@github.com/sholladay/mkdirtemp.git"},"author":{"name":"Seth Holladay","email":"me@seth-holladay.com","url":"http://seth-holladay.com"},"bugs":{"url":"https://github.com/sholladay/mkdirtemp/issues","email":"me@seth-holladay.com"},"license":"MPL-2.0","readmeFilename":"README.md"}