{"_id":"tempy","_rev":"185045","name":"tempy","description":"Get a random temporary file or directory path","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2022-10-18T11:02:35.000Z","created":"2017-03-28T10:51:59.184Z","3.0.0":"2022-04-18T12:59:18.986Z","2.0.0":"2021-08-18T12:32:47.842Z","1.0.1":"2021-03-17T07:03:04.830Z","1.0.0":"2020-10-12T12:24:34.078Z","0.7.1":"2020-09-26T00:08:17.460Z","0.7.0":"2020-09-13T15:57:04.854Z","0.6.0":"2020-07-18T19:24:18.086Z","0.5.0":"2020-03-09T08:27:54.041Z","0.4.0":"2020-02-12T12:20:47.135Z","0.3.0":"2019-04-16T12:03:38.080Z","0.2.1":"2017-09-19T16:12:55.398Z","0.2.0":"2017-09-13T05:47:17.440Z","0.1.0":"2017-03-28T10:51:59.184Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"versions":{"3.0.0":{"name":"tempy","version":"3.0.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"is-stream":"^3.0.0","temp-dir":"^2.0.0","type-fest":"^2.12.2","unique-string":"^3.0.0"},"devDependencies":{"@types/node":"^17.0.24","ava":"^4.2.0","path-exists":"^5.0.0","touch":"^3.1.0","tsd":"^0.20.0","xo":"^0.48.0"},"types":"./index.d.ts","gitHead":"df25f8156b677561e22ad13be24ad46f799a1ec2","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@3.0.0","_nodeVersion":"14.19.0","_npmVersion":"8.3.2","dist":{"shasum":"a6c0a15f5534a820e92c3e1369f1c1e87ebd6b68","size":3394,"noattachment":false,"key":"/tempy/-/tempy-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_3.0.0_1650286758842_0.9191728402309556"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-18T12:59:27.878Z","publish_time":1650286758986,"_cnpm_publish_time":1650286758986},"2.0.0":{"name":"tempy","version":"2.0.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"del":"^6.0.0","is-stream":"^3.0.0","temp-dir":"^2.0.0","type-fest":"^2.0.0","unique-string":"^3.0.0"},"devDependencies":{"ava":"^4.0.0-alpha.2","path-exists":"^5.0.0","touch":"^3.1.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"578a8acffe08ea93d11092ae6ebe74a2b7c6c844","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@2.0.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"c434b89486e112151d5e91ef25592c8ee6fec4f6","size":3608,"noattachment":false,"key":"/tempy/-/tempy-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_2.0.0_1629289967688_0.9706880947156984"},"_hasShrinkwrap":false,"publish_time":1629289967842,"_cnpm_publish_time":1629289967842,"_cnpmcore_publish_time":"2021-12-14T05:29:35.830Z"},"1.0.1":{"name":"tempy","version":"1.0.1","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"del":"^6.0.0","is-stream":"^2.0.0","temp-dir":"^2.0.0","type-fest":"^0.16.0","unique-string":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","path-exists":"^4.0.0","touch":"^3.1.0","tsd":"^0.13.1","xo":"^0.33.1"},"xo":{"rules":{"node/no-unsupported-features/node-builtins":"off"}},"gitHead":"0e498c987538f4ce4b9b0af69624a4026e6a3b36","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@1.0.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"30fe901fd869cfb36ee2bd999805aa72fbb035de","size":3577,"noattachment":false,"key":"/tempy/-/tempy-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-1.0.1.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_1.0.1_1615964584679_0.2146411704601725"},"_hasShrinkwrap":false,"publish_time":1615964584830,"_cnpm_publish_time":1615964584830},"1.0.0":{"name":"tempy","version":"1.0.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"del":"^6.0.0","is-stream":"^2.0.0","temp-dir":"^2.0.0","type-fest":"^0.16.0","unique-string":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","path-exists":"^4.0.0","touch":"^3.1.0","tsd":"^0.13.1","xo":"^0.33.1"},"xo":{"rules":{"node/no-unsupported-features/node-builtins":"off"}},"gitHead":"3f5d3f4b475c0dbb8cd7ecf05cf7768672b09aef","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@1.0.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4f192b3ee3328a2684d0e3fc5c491425395aab65","size":3620,"noattachment":false,"key":"/tempy/-/tempy-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_1.0.0_1602505473940_0.9614157783875048"},"_hasShrinkwrap":false,"publish_time":1602505474078,"_cnpm_publish_time":1602505474078},"0.7.1":{"name":"tempy","version":"0.7.1","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"del":"^6.0.0","is-stream":"^2.0.0","temp-dir":"^2.0.0","type-fest":"^0.16.0","unique-string":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","path-exists":"^4.0.0","touch":"^3.1.0","tsd":"^0.13.1","xo":"^0.33.1"},"xo":{"rules":{"node/no-unsupported-features/node-builtins":"off"}},"gitHead":"943ade0c935367117adbe2b690516ebc94139c6d","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.7.1","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5a654e6dbd1747cdd561efb112350b55cd9c1d46","size":3582,"noattachment":false,"key":"/tempy/-/tempy-0.7.1.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.7.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_0.7.1_1601078897308_0.9660806270978701"},"_hasShrinkwrap":false,"publish_time":1601078897460,"_cnpm_publish_time":1601078897460},"0.7.0":{"name":"tempy","version":"0.7.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"del":"^5.1.0","is-stream":"^2.0.0","temp-dir":"^2.0.0","type-fest":"^0.16.0","unique-string":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","path-exists":"^4.0.0","touch":"^3.1.0","tsd":"^0.13.1","xo":"^0.32.1"},"xo":{"rules":{"node/no-unsupported-features/node-builtins":"off"}},"gitHead":"e7b4c4f693c85a291859e248f2899ea8f10cd84f","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.7.0","_nodeVersion":"10.22.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8249c76a38bd104733a5491410aa84b508e8b503","size":3582,"noattachment":false,"key":"/tempy/-/tempy-0.7.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.7.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_0.7.0_1600012624726_0.7114917800975733"},"_hasShrinkwrap":false,"publish_time":1600012624854,"_cnpm_publish_time":1600012624854},"0.6.0":{"name":"tempy","version":"0.6.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"is-stream":"^2.0.0","temp-dir":"^2.0.0","type-fest":"^0.16.0","unique-string":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.32.1"},"xo":{"rules":{"node/no-unsupported-features/node-builtins":"off"}},"gitHead":"77204fe5da8a2eef9075427fd3e471f90b8d1b21","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.6.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"65e2c35abc06f1124a97f387b08303442bde59f3","size":3186,"noattachment":false,"key":"/tempy/-/tempy-0.6.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.6.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_0.6.0_1595100257963_0.8128957483965209"},"_hasShrinkwrap":false,"publish_time":1595100258086,"_cnpm_publish_time":1595100258086},"0.5.0":{"name":"tempy","version":"0.5.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"is-stream":"^2.0.0","temp-dir":"^2.0.0","type-fest":"^0.12.0","unique-string":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.25.4"},"gitHead":"ae6e6a26a506759e5f19cb128d139bf018129d88","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.5.0","_nodeVersion":"10.18.1","_npmVersion":"6.14.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2785c89df39fcc4d1714fc554813225e1581d70b","size":2938,"noattachment":false,"key":"/tempy/-/tempy-0.5.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.5.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_0.5.0_1583742473885_0.7478690458969341"},"_hasShrinkwrap":false,"publish_time":1583742474041,"_cnpm_publish_time":1583742474041},"0.4.0":{"name":"tempy","version":"0.4.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique"],"dependencies":{"temp-dir":"^2.0.0","type-fest":"^0.10.0","unique-string":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.25.4"},"gitHead":"a2c71980e1e2014dbf6a8e8eb6e445e2d99cb18c","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.4.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2240e944cbb6b843415b7ef10b6dff9cda7297d0","size":2530,"noattachment":false,"key":"/tempy/-/tempy-0.4.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_0.4.0_1581510046968_0.8100808827914103"},"_hasShrinkwrap":false,"publish_time":1581510047135,"_cnpm_publish_time":1581510047135},"0.3.0":{"name":"tempy","version":"0.3.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","path","file","directory","folder","tempfile","tempdir","tmpdir","tmpfile","random","unique","uniq"],"dependencies":{"temp-dir":"^1.0.0","type-fest":"^0.3.1","unique-string":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"8958de57554b06f1dceff8cd5f969aee57e0e056","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.3.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6f6c5b295695a16130996ad5ab01a8bd726e8bf8","size":2471,"noattachment":false,"key":"/tempy/-/tempy-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy_0.3.0_1555416217873_0.9120659769192758"},"_hasShrinkwrap":false,"publish_time":1555416218080,"_cnpm_publish_time":1555416218080},"0.2.1":{"name":"tempy","version":"0.2.1","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["temp","tmp","temporary","path","file","directory","dir","folder","tempfile","tempdir","tmpdir","tmpfile","random","rand","unique","uniq"],"dependencies":{"temp-dir":"^1.0.0","unique-string":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"ec634c9e48a6feca53b70fcd0fbe80db5c5682b8","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9038e4dbd1c201b74472214179bc2c6f7776e54c","size":2206,"noattachment":false,"key":"/tempy/-/tempy-0.2.1.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.2.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy-0.2.1.tgz_1505837574977_0.8606187282130122"},"directories":{},"publish_time":1505837575398,"_hasShrinkwrap":false,"_cnpm_publish_time":1505837575398},"0.2.0":{"name":"tempy","version":"0.2.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["temp","tmp","temporary","path","file","directory","dir","folder","tempfile","tempdir","tmpdir","tmpfile","random","rand","unique","uniq"],"dependencies":{"temp-dir":"^1.0.0","unique-string":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"b62ddb4804d41a1f88c10622aacb22b5d0841374","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.2.0","_npmVersion":"5.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"00537af10b3f6ed0e03e2826335169027abe37b8","size":2169,"noattachment":false,"key":"/tempy/-/tempy-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tempy-0.2.0.tgz_1505281637368_0.5780532085336745"},"directories":{},"publish_time":1505281637440,"_hasShrinkwrap":false,"_cnpm_publish_time":1505281637440},"0.1.0":{"name":"tempy","version":"0.1.0","description":"Get a random temporary file or directory path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempy.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["temp","tmp","temporary","path","file","directory","dir","folder","tempfile","tempdir","tmpdir","tmpfile","random","rand","unique","uniq"],"dependencies":{"pify":"^2.3.0","temp-dir":"^1.0.0","unique-string":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"22e8857a31bd21635deca2fa53eeb182b48808ac","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"homepage":"https://github.com/sindresorhus/tempy#readme","_id":"tempy@0.1.0","_shasum":"8527413cd07100834fcc9cbb8242be95ba0e1fee","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8527413cd07100834fcc9cbb8242be95ba0e1fee","size":2177,"noattachment":false,"key":"/tempy/-/tempy-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/tempy/download/tempy-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tempy-0.1.0.tgz_1490698318867_0.4736266096588224"},"directories":{},"publish_time":1490698319184,"_cnpm_publish_time":1490698319184,"_hasShrinkwrap":false}},"readme":"# tempy\n\n> Get a random temporary file or directory path\n\n## Install\n\n```sh\nnpm install tempy\n```\n\n## Usage\n\n```js\nimport {temporaryFile, temporaryDirectory} from 'tempy';\n\ntemporaryFile();\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/4f504b9edb5ba0e89451617bf9f971dd'\n\ntemporaryFile({extension: 'png'});\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/a9fb0decd08179eb6cf4691568aa2018.png'\n\ntemporaryFile({name: 'unicorn.png'});\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/f7f62bfd4e2a05f1589947647ed3f9ec/unicorn.png'\n\ntemporaryDirectory();\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/2f3d094aec2cb1b93bb0f4cffce5ebd6'\n\ntemporaryDirectory({prefix: 'name'});\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/name_3c085674ad31223b9653c88f725d6b41'\n```\n\n## API\n\n### temporaryFile(options?)\n\nGet a temporary file path you can write to.\n\n### temporaryFileTask(callback, options?)\n\nThe `callback` resolves with a temporary file path you can write to. The file is automatically cleaned up after the callback is executed. Returns a promise that resolves with the return value of the callback after it is executed and the file is cleaned up.\n\n#### callback\n\nType: `(tempPath: string) => void`\n\nA callback that is executed with the temp file path. Can be asynchronous.\n\n#### options\n\nType: `object`\n\n*You usually won't need either the `extension` or `name` option. Specify them only when actually needed.*\n\n##### extension\n\nType: `string`\n\nFile extension.\n\n##### name\n\nType: `string`\n\nFilename. Mutually exclusive with the `extension` option.\n\n### temporaryDirectory(options?)\n\nGet a temporary directory path. The directory is created for you.\n\n### temporaryDirectoryTask(callback, options?)\n\nThe `callback` resolves with a temporary directory path you can write to. The directory is automatically cleaned up after the callback is executed. Returns a promise that resolves with the return value of the callback after it is executed and the directory is cleaned up.\n\n##### callback\n\nType: `(tempPath: string) => void`\n\nA callback that is executed with the temp directory path. Can be asynchronous.\n\n#### options\n\nType: `Object`\n\n##### prefix\n\nType: `string`\n\nDirectory prefix.\n\nUseful for testing by making it easier to identify cache directories that are created.\n\n*You usually won't need this option. Specify it only when actually needed.*\n\n### temporaryWrite(fileContent, options?)\n\nWrite data to a random temp file.\n\n### temporaryWriteTask(fileContent, callback, options?)\n\nWrite data to a random temp file. The file is automatically cleaned up after the callback is executed. Returns a promise that resolves with the return value of the callback after it is executed and the file is cleaned up.\n\n##### fileContent\n\nType: `string | Buffer | TypedArray | DataView | stream.Readable`\n\nData to write to the temp file.\n\n##### callback\n\nType: `(tempPath: string) => void`\n\nA callback that is executed with the temp file path. Can be asynchronous.\n\n##### options\n\nSee [options](#options).\n\n### temporaryWriteSync(fileContent, options?)\n\nSynchronously write data to a random temp file.\n\n##### fileContent\n\nType: `string | Buffer | TypedArray | DataView`\n\nData to write to the temp file.\n\n##### options\n\nSee [options](#options).\n\n### rootTemporaryDirectory\n\nGet the root temporary directory path. For example: `/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T`\n","_attachments":{},"homepage":"https://github.com/sindresorhus/tempy#readme","bugs":{"url":"https://github.com/sindresorhus/tempy/issues"},"license":"MIT"}