{"_id":"quick-tmp","_rev":"87930","name":"quick-tmp","description":"Quickly and synchronously retrieve a temporary directory name for you to use","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2021-06-03T10:28:35.000Z","created":"2014-01-25T01:18:22.658Z","1.0.0":"2016-01-02T07:14:20.805Z","0.0.0":"2014-01-25T01:18:22.658Z"},"users":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"repository":{"type":"git","url":"git://github.com/hughsk/quick-tmp.git"},"versions":{"1.0.0":{"name":"quick-tmp","description":"Quickly and synchronously retrieve a temporary directory name for you to use","version":"1.0.0","main":"index.js","browser":"index.js","dependencies":{"first-match":"0.0.1","osenv":"0.0.3"},"devDependencies":{},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/quick-tmp.git"},"bugs":{"url":"https://github.com/hughsk/quick-tmp/issues"},"homepage":"https://github.com/hughsk/quick-tmp","keywords":["tmp","synchronous","quick","temporary","directory"],"gitHead":"cfea6a05d82c31934b4710e400e81b92e2800e3a","_id":"quick-tmp@1.0.0","_shasum":"01fe3945d342a8bea0772eac2f7b9f44072bb829","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"dist":{"shasum":"01fe3945d342a8bea0772eac2f7b9f44072bb829","size":2111,"noattachment":false,"key":"/quick-tmp/-/quick-tmp-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/quick-tmp/download/quick-tmp-1.0.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{},"publish_time":1451718860805,"_cnpm_publish_time":1451718860805,"_hasShrinkwrap":false},"0.0.0":{"name":"quick-tmp","description":"Quickly and synchronously retrieve a temporary directory name for you to use","version":"0.0.0","main":"index.js","browser":"index.js","dependencies":{"first-match":"0.0.1","osenv":"0.0.3"},"devDependencies":{},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/quick-tmp"},"bugs":{"url":"https://github.com/hughsk/quick-tmp/issues"},"homepage":"https://github.com/hughsk/quick-tmp","keywords":["tmp","synchronous","quick","temporary","directory"],"_id":"quick-tmp@0.0.0","dist":{"shasum":"4165e66320ea05f9cbcccf3be1f8fd5fdb05f7df","size":2116,"noattachment":false,"key":"/quick-tmp/-/quick-tmp-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/quick-tmp/download/quick-tmp-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{},"publish_time":1390612702658,"_cnpm_publish_time":1390612702658,"_hasShrinkwrap":false}},"readme":"# quick-tmp [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/quick-tmp&title=quick-tmp&description=hughsk/quick-tmp%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #\n\nQuickly and synchronously retrieve a temporary directory name for you to use.\n\nUsing the name generation from the [tmp](https://github.com/raszi/node-tmp/blob/master/lib/tmp.js#L110-L118)\nmodule, but allowing you to handle writing and removing of directories/files.\n\n## Usage ##\n\n[![quick-tmp](https://nodei.co/npm/quick-tmp.png?mini=true)](https://nodei.co/npm/quick-tmp)\n\n### `getDirectory = quickTmp([prefix])` ###\n\nConfigures the temporary directory's `prefix`, which defaults to `'quicktmp'`.\n\n### `directory = getDirectory([retries])` ###\n\nReturn a random temporary directory name. You'll have to create the directory\nyourself. `retries` determines how many times to try finding a folder not\nthat doesn't already exist, and defaults to 10.\n\n``` javascript\n// straight away:\nvar directory = require('quick-tmp')('prefix')()\n// or later:\nvar getDirectory = require('quick-tmp')('prefix')\ngetDirectory()\n// => '/var/folders/43/z7pv8pvd4x57nt_1zz2561tw0000gn/T/prefix-43831t6vveao'\n```\n\n## License ##\n\nMIT. See [LICENSE.md](http://github.com/hughsk/quick-tmp/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/hughsk/quick-tmp","bugs":{"url":"https://github.com/hughsk/quick-tmp/issues"},"license":"MIT"}