{"_id":"unique-temp-dir","_rev":"7-4d30320b3abb19ca83b0d13a41fbec28","name":"unique-temp-dir","description":"Provides a uniquely named temp directory.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"unique-temp-dir","version":"1.0.0","description":"Provides a uniquely named temp directory.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/unique-temp-dir.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["unique","temp","temporary","directory","dir","cross","platform","os"],"dependencies":{"mkdirp":"^0.5.1","os-tmpdir":"^1.0.1","uid2":"0.0.3"},"devDependencies":{"ava":"^0.8.0","xo":"^0.12.1"},"gitHead":"4de7e8bd8fe5454a5b78d6ecf53f34b657f7a539","bugs":{"url":"https://github.com/jamestalmage/unique-temp-dir/issues"},"homepage":"https://github.com/jamestalmage/unique-temp-dir#readme","_id":"unique-temp-dir@1.0.0","_shasum":"6dce95b2681ca003eebfb304a415f9cbabcc5385","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.2.0","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"6dce95b2681ca003eebfb304a415f9cbabcc5385","tarball":"https://registry.npmjs.org/unique-temp-dir/-/unique-temp-dir-1.0.0.tgz","integrity":"sha512-tE68ki2FndoVdPioyiz8mYaJeX3xU/9lk4dml7KlLKEkWLtDGAYeg5LGjE2dMkzB8d6R3HbcKTn/I14nukP2dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0Zn+/0/Xnc+JkMDzFJKBvXRnmlZ2sZsD4HGgJ676YjwIgCguaikSVX83QSnq4+3cEkWklA7z02SxWsqWRCwrVfTI="}]},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{}}},"readme":"# unique-temp-dir [![Build Status](https://travis-ci.org/jamestalmage/unique-temp-dir.svg?branch=master)](https://travis-ci.org/jamestalmage/unique-temp-dir)\n\n> Provides a uniquely named temp directory.\n\n\n## Install\n\n```\n$ npm install --save unique-temp-dir\n```\n\n\n## Usage\n\n```js\nconst uniqueTempDir = require('unique-temp-dir');\n\nuniqueTempDir();\n//=> '/var/folders/2_/zg9h6_xd4r3_z7c07s0cn8mw0000gn/T/PpCfz55ANU2hdwnGzgny'\n\nuniqueTempDir();\n//=> '/var/folders/2_/zg9h6_xd4r3_z7c07s0cn8mw0000gn/T/qfqafhh1FJulehbCDAPk'\n```\n\n\n## API\n\n### uniqueTempDir([options])\n\nReturns a string that represents a unique directory inside the systems temp directory.\n\n#### options\n\n##### create\n\nType: `boolean`  \nDefault: `false`\n\nIf `true`, the directory will be created synchronously before returning.\n\n##### length\n\nType: `number`  \nDefault: `20`\n\nThe length of the directory name inside the temp directory.\n\n##### thunk\n\nType: `boolean`  \nDefault: `false`\n\nIf true, returns a thunk function for `path.join(uniqueTempDir, ... additionalArgs)`. Useful for filling your directory up with stuff.\n\n```js                     \nconst uniqueTempDir = require('unique-temp-dir');\nconst tempDir = uniqueTempDir({thunk: true});\n\ntempDir()\n//=> /user/temp/uniqueId\n\ntempDir('foo')\n//=> /user/temp/uniqueId/foo\n\ntempDir('bar')\n//=> /user/temp/uniqueId/bar\n```\n\n## License\n\nMIT © [James Talmage](http://github.com/jamestalmage)\n","maintainers":[{"email":"james@talmage.io","name":"jamestalmage"},{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"time":{"modified":"2023-06-17T00:09:31.574Z","created":"2015-12-30T02:39:14.921Z","1.0.0":"2015-12-30T02:39:14.921Z"},"homepage":"https://github.com/jamestalmage/unique-temp-dir#readme","keywords":["unique","temp","temporary","directory","dir","cross","platform","os"],"repository":{"type":"git","url":"git+https://github.com/jamestalmage/unique-temp-dir.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"bugs":{"url":"https://github.com/jamestalmage/unique-temp-dir/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"recursion_excursion":true,"hengkiardo":true,"flumpus-dev":true}}