{"_id":"tmp-promise","_rev":"1357479","name":"tmp-promise","description":"The tmp package with promises support and disposers.","dist-tags":{"latest":"3.0.3"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"time":{"modified":"2021-11-02T19:51:01.000Z","created":"2016-02-23T10:13:37.480Z","3.0.3":"2021-10-26T11:06:29.063Z","3.0.2":"2020-05-10T20:43:50.577Z","3.0.1":"2020-05-10T20:43:16.563Z","2.1.1":"2020-05-05T17:03:01.092Z","3.0.0":"2020-05-05T16:04:07.189Z","2.1.0":"2020-05-03T16:33:08.831Z","2.0.2":"2019-07-04T09:38:06.563Z","2.0.1":"2019-05-21T11:39:21.136Z","1.1.0":"2019-05-07T14:49:33.384Z","1.0.5":"2018-07-13T19:16:19.301Z","1.0.4":"2017-11-06T13:41:32.670Z","1.0.3":"2017-01-02T16:08:07.735Z","1.0.2":"2016-03-02T09:37:32.904Z","1.0.0":"2016-02-23T10:13:37.480Z"},"users":{"compulim":true,"paraself":true,"daskepon":true},"author":{"name":"Benjamin Gruenbaum and Collaborators."},"repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"versions":{"3.0.3":{"name":"tmp-promise","version":"3.0.3","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types","publish":"node publish"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and Collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"^0.2.0"},"devDependencies":{"@types/tmp":"^0.2.0","mocha":"7.1.2","tsd":"0.11.0"},"gitHead":"7a9d92612d24791664669596c2705313d459ce7f","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@3.0.3","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"shasum":"60a1a1cc98c988674fcbfd23b6e3367bdeac4ce7","size":5179,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-3.0.3.tgz"},"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_3.0.3_1635246388906_0.09289760199248276"},"_hasShrinkwrap":false,"publish_time":1635246389063,"_cnpm_publish_time":1635246389063},"3.0.2":{"name":"tmp-promise","version":"3.0.2","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types","publish":"node publish"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and Collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"^0.2.0"},"devDependencies":{"@types/tmp":"^0.2.0","mocha":"7.1.2","tsd":"0.11.0"},"gitHead":"993403581c09b63b88f57e4ed7f5e558d98afacc","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@3.0.2","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"6e933782abff8b00c3119d63589ca1fb9caaa62a","size":5260,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-3.0.2.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_3.0.2_1589143430474_0.7935559573703619"},"_hasShrinkwrap":false,"publish_time":1589143430577,"_cnpm_publish_time":1589143430577},"3.0.1":{"name":"tmp-promise","version":"3.0.1","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types","publish":"node publish"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and Collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"^0.2.0"},"devDependencies":{"@types/tmp":"^0.2.0","mocha":"7.1.2","tsd":"0.11.0"},"gitHead":"993403581c09b63b88f57e4ed7f5e558d98afacc","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@3.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"2257ef048e0ee385e7209e83a6e13a69527dbf80","size":5261,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-3.0.1.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_3.0.1_1589143396468_0.6149838829137759"},"_hasShrinkwrap":false,"publish_time":1589143396563,"_cnpm_publish_time":1589143396563},"2.1.1":{"name":"tmp-promise","version":"2.1.1","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"0.1.0"},"devDependencies":{"@types/tmp":"^0.1.0","mocha":"^6.1.4","tsd":"^0.7.2"},"gitHead":"dc2e136d98ea1ad7d92f9a595a3420944f08d2bb","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@2.1.1","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"eb97c038995af74efbfe8156f5e07fdd0c935539","size":5141,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-2.1.1.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_2.1.1_1588698180985_0.18038746022722796"},"_hasShrinkwrap":false,"publish_time":1588698181092,"_cnpm_publish_time":1588698181092},"3.0.0":{"name":"tmp-promise","version":"3.0.0","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"^0.2.0"},"devDependencies":{"@types/tmp":"^0.1.0","mocha":"^6.1.4","tsd":"^0.7.2"},"gitHead":"dc2e136d98ea1ad7d92f9a595a3420944f08d2bb","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@3.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"ea5bee44ff73f289ad8c96a7bceaecb289116742","size":5142,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-3.0.0.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_3.0.0_1588694647078_0.5844449942629413"},"_hasShrinkwrap":false,"publish_time":1588694647189,"_cnpm_publish_time":1588694647189},"2.1.0":{"name":"tmp-promise","version":"2.1.0","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"^0.2.0"},"devDependencies":{"@types/tmp":"^0.1.0","mocha":"^6.1.4","tsd":"^0.7.2"},"gitHead":"0c401abd67e5f9f5fe6b6bcbcc19da8b8d257c7a","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@2.1.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"b3e70d34ec294279e7c3abbf12b20c7290a3b084","size":5141,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-2.1.0.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_2.1.0_1588523588696_0.13177636200062537"},"_hasShrinkwrap":false,"publish_time":1588523588831,"_cnpm_publish_time":1588523588831,"deprecated":"version 2.1.0 uses semver incorrectly, please use version 3"},"2.0.2":{"name":"tmp-promise","version":"2.0.2","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"0.1.0"},"devDependencies":{"@types/tmp":"0.1.0","mocha":"^6.1.4","tsd":"^0.7.2"},"gitHead":"04aab3182f3280016385039fc283ee8e23c1e6dd","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@2.0.2","_nodeVersion":"12.5.0","_npmVersion":"6.9.0","dist":{"shasum":"ee605edb10f100954be5dd8b9dbe1bfd56194202","size":5059,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-2.0.2.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_2.0.2_1562233086448_0.34838039065499404"},"_hasShrinkwrap":false,"publish_time":1562233086563,"_cnpm_publish_time":1562233086563},"2.0.1":{"name":"tmp-promise","version":"2.0.1","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"mocha":"mocha","check-types":"tsd","test":"npm run mocha && npm run check-types"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"tmp":"0.1.0"},"devDependencies":{"@types/tmp":"0.1.0","mocha":"^6.1.4","tsd":"^0.7.2"},"gitHead":"59a4dd1644abcd264c7168c4dd07eee818eb9238","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@2.0.1","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"shasum":"8856f057e782fc9c363a76335cf6165b8eddae19","size":4626,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-2.0.1.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_2.0.1_1558438760997_0.03141350423650335"},"_hasShrinkwrap":false,"publish_time":1558438761136,"_cnpm_publish_time":1558438761136},"1.1.0":{"name":"tmp-promise","version":"1.1.0","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"test":"mocha"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"bluebird":"^3.5.0","tmp":"0.1.0"},"devDependencies":{"@types/tmp":"0.0.33","mocha":"^3.1.2"},"gitHead":"1fa5029319d958be51b24681d25a0063124ee788","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@1.1.0","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"shasum":"bb924d239029157b9bc1d506a6aa341f8b13e64c","size":4023,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-1.1.0.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_1.1.0_1557240573114_0.5120973937213897"},"_hasShrinkwrap":false,"publish_time":1557240573384,"_cnpm_publish_time":1557240573384},"1.0.5":{"name":"tmp-promise","version":"1.0.5","description":"The tmp package with promises support and disposers.","main":"index.js","types":"index.d.ts","scripts":{"test":"mocha"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"bluebird":"^3.5.0","tmp":"0.0.33"},"devDependencies":{"@types/tmp":"0.0.33","mocha":"^3.1.2"},"gitHead":"112e4f1a5394403ee275d92be2668a6cc8792c0b","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@1.0.5","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"dist":{"shasum":"3208d7fa44758f86a2a4c4060f3c33fea30e8038","size":3868,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-1.0.5.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise_1.0.5_1531509379247_0.9881505836343827"},"_hasShrinkwrap":false,"publish_time":1531509379301,"_cnpm_publish_time":1531509379301},"1.0.4":{"name":"tmp-promise","version":"1.0.4","description":"The tmp package with promises support and disposers.","main":"index.js","scripts":{"test":"mocha"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"bluebird":"^3.5.0","tmp":"0.0.33"},"devDependencies":{"mocha":"^3.1.2"},"gitHead":"0be2c611e8601715a020de792085c3f2d9cf81aa","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"benjamin.gruenbaum","email":"benjamingr@gmail.com"},"dist":{"shasum":"cfe2131b78392992e756d8692a059dc4b48be7ac","size":3861,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-1.0.4.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-promise-1.0.4.tgz_1509975691642_0.8268316430039704"},"directories":{},"publish_time":1509975692670,"_hasShrinkwrap":false,"_cnpm_publish_time":1509975692670},"1.0.3":{"name":"tmp-promise","version":"1.0.3","description":"The tmp package with promises support and disposers.","main":"index.js","scripts":{"test":"mocha"},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum and collaborators."},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"bluebird":"^3.3.1","tmp":"0.0.31"},"devDependencies":{"mocha":"^3.1.2"},"gitHead":"c9c4404f2bfdce260e8c5fff2444365aa57e34fd","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@1.0.3","_shasum":"3b450927ab78c6aedca5e628c677f536cae38bc5","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"},"dist":{"shasum":"3b450927ab78c6aedca5e628c677f536cae38bc5","size":3899,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-1.0.3.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tmp-promise-1.0.3.tgz_1483373285487_0.2786292431410402"},"directories":{},"publish_time":1483373287735,"_cnpm_publish_time":1483373287735,"_hasShrinkwrap":false},"1.0.2":{"name":"tmp-promise","version":"1.0.2","description":"The tmp package with promises support and disposers.","main":"index.js","scripts":{"test":""},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum"},"license":"MIT","repository":{"type":"git","url":"git://github.com/benjamingr/tmp-promise.git"},"dependencies":{"bluebird":"^3.3.3","tmp":"0.0.28"},"gitHead":"9364a283e1c4a64a9aa610a778085207a7084ab2","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"homepage":"https://github.com/benjamingr/tmp-promise#readme","_id":"tmp-promise@1.0.2","_shasum":"3b7b5631d3af6a86bce7a433c2495465c5760fca","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"},"dist":{"shasum":"3b7b5631d3af6a86bce7a433c2495465c5760fca","size":3478,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-1.0.2.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tmp-promise-1.0.2.tgz_1456911450454_0.6711175027303398"},"directories":{},"publish_time":1456911452904,"_cnpm_publish_time":1456911452904,"_hasShrinkwrap":false},"1.0.0":{"name":"tmp-promise","version":"1.0.0","description":"The tmp package with promises support and disposers.","main":"index.js","scripts":{"test":""},"keywords":["tmp","promise","tempfile","mkdtemp","mktemp"],"author":{"name":"Benjamin Gruenbaum"},"license":"MIT","dependencies":{"bluebird":"^3.3.1","tmp":"0.0.28"},"_id":"tmp-promise@1.0.0","_shasum":"cd3dfe2fc359c14a1c3524dcbe3990675b5d8424","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"},"dist":{"shasum":"cd3dfe2fc359c14a1c3524dcbe3990675b5d8424","size":3121,"noattachment":false,"key":"/tmp-promise/-/tmp-promise-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tmp-promise/download/tmp-promise-1.0.0.tgz"},"maintainers":[{"name":"benjamin.gruenbaum","email":"benji@tipranks.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/tmp-promise-1.0.0.tgz_1456222411961_0.5604870258830488"},"directories":{},"publish_time":1456222417480,"_cnpm_publish_time":1456222417480,"_hasShrinkwrap":false}},"readme":"# tmp-promise\n\n[![CircleCI](https://circleci.com/gh/benjamingr/tmp-promise.svg?style=svg)](https://circleci.com/gh/benjamingr/tmp-promise)\n[![npm version](https://badge.fury.io/js/tmp-promise.svg)](https://badge.fury.io/js/tmp-promise)\n\nA simple utility for creating temporary files or directories.\n\nThe [tmp](https://github.com/raszi/node-tmp) package with promises support. If you want to use `tmp` with `async/await` then this helper might be for you.\n\nThis documentation is mostly copied from that package's - but with promise usage instead of callback usage adapted.\n\n## Installation\n\n    npm i tmp-promise\n\n**Note:** Node.js 8+ is supported - older versions of Node.js are not supported by the Node.js foundation. If you need to use an older version of Node.js install tmp-promise@1.10\n\n    npm i tmp-promise@1.1.0\n\n## About\n\nThis adds promises support to a [widely used library][2]. This package is used to create temporary files and directories in a [Node.js][1] environment.\n \n\ntmp-promise offers both an asynchronous and a synchronous API. For all API calls, all\nthe parameters are optional.\n\nInternally, tmp uses crypto for determining random file names, or, when using templates, a six letter random identifier. And just in case that you do not have that much entropy left on your system, tmp will fall back to pseudo random numbers.\n\nYou can set whether you want to remove the temporary file on process exit or not, and the destination directory can also be set.\n\ntmp-promise also uses promise [disposers](http://stackoverflow.com/questions/28915677/what-is-the-promise-disposer-pattern) to provide a nice way to perform cleanup when you're done working with the files.\n\n## Usage (API Reference)\n\n### Asynchronous file creation\n\nSimple temporary file creation, the file will be closed and unlinked on process exit.\n\nWith Node.js 10 and es - modules:\n\n```js\nimport { file } from 'tmp-promise'\n\n(async () => {\n  const {fd, path, cleanup} = await file();\n  // work with file here in fd\n  cleanup();\n})(); \n```\n\nOr the older way:\n\n```javascript\nvar tmp = require('tmp-promise');\n\ntmp.file().then(o => {  \n  console.log(\"File: \", o.path);\n  console.log(\"Filedescriptor: \", o.fd);\n  \n  // If we don't need the file anymore we could manually call cleanup\n  // But that is not necessary if we didn't pass the keep option because the library\n  // will clean after itself.\n  o.cleanup();\n});\n```\n\nSimple temporary file creation with a [disposer](http://stackoverflow.com/questions/28915677/what-is-the-promise-disposer-pattern):\n\nWith Node.js 10 and es - modules:\n\n```js\nimport { withFile } from 'tmp-promise'\n\nwithFile(async ({path, fd}) => {\n  // when this function returns or throws - release the file \n  await doSomethingWithFile(db);\n});\n```\n\nOr the older way:\n\n```js\ntmp.withFile(o => {\n  console.log(\"File: \", o.path);\n  console.log(\"Filedescriptor: \", o.fd);\n  // the file remains opens until the below promise resolves\n  return somePromiseReturningFn();\n}).then(v => {\n  // file is closed here automatically, v is the value of somePromiseReturningFn\n});\n```\n\n\n### Synchronous file creation\n\nA synchronous version of the above.\n\n```javascript\nvar tmp = require('tmp-promise');\n\nvar tmpobj = tmp.fileSync();\nconsole.log(\"File: \", tmpobj.name);\nconsole.log(\"Filedescriptor: \", tmpobj.fd);\n  \n// If we don't need the file anymore we could manually call the removeCallback\n// But that is not necessary if we didn't pass the keep option because the library\n// will clean after itself.\ntmpobj.removeCallback();\n```\n\nNote that this might throw an exception if either the maximum limit of retries\nfor creating a temporary name fails, or, in case that you do not have the permission\nto write to the directory where the temporary file should be created in.\n\n### Asynchronous directory creation\n\nSimple temporary directory creation, it will be removed on process exit.\n\nIf the directory still contains items on process exit, then it won't be removed.\n\n```javascript\nvar tmp = require('tmp-promise');\n\ntmp.dir().then(o => {\n  console.log(\"Dir: \", o.path);\n  \n  // Manual cleanup\n  o.cleanup();\n});\n```\n\nIf you want to cleanup the directory even when there are entries in it, then\nyou can pass the `unsafeCleanup` option when creating it.\n\nYou can also use a [disposer](http://stackoverflow.com/questions/28915677/what-is-the-promise-disposer-pattern) here which takes care of cleanup automatically: \n\n```javascript\nvar tmp = require('tmp-promise');\n\ntmp.withDir(o => {\n  console.log(\"Dir: \", o.path);\n  \n  // automatic cleanup when the below promise resolves\n  return somePromiseReturningFn(); \n}).then(v => {\n  // the directory has been cleaned here\n});\n```\n\n### Synchronous directory creation\n\nA synchronous version of the above.\n\n```javascript\nvar tmp = require('tmp-promise');\n\nvar tmpobj = tmp.dirSync();\nconsole.log(\"Dir: \", tmpobj.name);\n// Manual cleanup\ntmpobj.removeCallback();\n```\n\nNote that this might throw an exception if either the maximum limit of retries\nfor creating a temporary name fails, or, in case that you do not have the permission\nto write to the directory where the temporary directory should be created in.\n\n### Asynchronous filename generation\n\nIt is possible with this library to generate a unique filename in the specified\ndirectory.\n\n```javascript\nvar tmp = require('tmp-promise');\n\ntmp.tmpName().then(path => {\n    console.log(\"Created temporary filename: \", path);\n});\n```\n\n### Synchronous filename generation\n\nA synchronous version of the above.\n\n```javascript\nvar tmp = require('tmp-promise');\n\nvar name = tmp.tmpNameSync();\nconsole.log(\"Created temporary filename: \", name);\n```\n\n## Advanced usage\n\n### Asynchronous file creation\n\nCreates a file with mode `0644`, prefix will be `prefix-` and postfix will be `.txt`.\n\n```javascript\nvar tmp = require('tmp-promise');\n\ntmp.file({ mode: 0644, prefix: 'prefix-', postfix: '.txt' }).then(o => {\n  console.log(\"File: \", o.path);\n  console.log(\"Filedescriptor: \", o.fd); \n});\n```\n\n### Synchronous file creation\n\nA synchronous version of the above.\n\n```javascript\nvar tmp = require('tmp-promise');\n\nvar tmpobj = tmp.fileSync({ mode: 0644, prefix: 'prefix-', postfix: '.txt' });\nconsole.log(\"File: \", tmpobj.name);\nconsole.log(\"Filedescriptor: \", tmpobj.fd);\n```\n\n### Asynchronous directory creation\n\nCreates a directory with mode `0755`, prefix will be `myTmpDir_`.\n\n```javascript\nvar tmp = require('tmp-promise');\n\ntmp.dir({ mode: 0750, prefix: 'myTmpDir_' }).then(o => {\n  console.log(\"Dir: \", o.path);\n});\n```\n\n### Synchronous directory creation\n\nAgain, a synchronous version of the above.\n\n```javascript\nvar tmp = require('tmp-promise');\n\nvar tmpobj = tmp.dirSync({ mode: 0750, prefix: 'myTmpDir_' });\nconsole.log(\"Dir: \", tmpobj.name);\n```\n\n\n### mkstemp like, asynchronously\n\nCreates a new temporary directory with mode `0700` and filename like `/tmp/tmp-nk2J1u`.\n\n```javascript\nvar tmp = require('tmp-promise');\ntmp.dir({ template: '/tmp/tmp-XXXXXX' }).then(console.log);\n```\n\n\n### mkstemp like, synchronously\n\nThis will behave similarly to the asynchronous version.\n\n```javascript\nvar tmp = require('tmp-promise');\n\nvar tmpobj = tmp.dirSync({ template: '/tmp/tmp-XXXXXX' });\nconsole.log(\"Dir: \", tmpobj.name);\n```\n\n### Asynchronous filename generation\n\nThe `tmpName()` function accepts the `prefix`, `postfix`, `dir`, etc. parameters also:\n\n```javascript\nvar tmp = require('tmp-promise');\n\ntmp.tmpName({ template: '/tmp/tmp-XXXXXX' }).then(path =>\n    console.log(\"Created temporary filename: \", path);\n);\n```\n\n### Synchronous filename generation\n\nThe `tmpNameSync()` function works similarly to `tmpName()`.\n\n```javascript\nvar tmp = require('tmp-promise');\nvar tmpname = tmp.tmpNameSync({ template: '/tmp/tmp-XXXXXX' });\nconsole.log(\"Created temporary filename: \", tmpname);\n```\n\n\n## Graceful cleanup\n\nOne may want to cleanup the temporary files even when an uncaught exception\noccurs. To enforce this, you can call the `setGracefulCleanup()` method:\n\n```javascript\nvar tmp = require('tmp');\n\ntmp.setGracefulCleanup();\n```\n\n## Options\n\nAll options are optional :)\n\n  * `mode`: the file mode to create with, it fallbacks to `0600` on file creation and `0700` on directory creation\n  * `prefix`: the optional prefix, fallbacks to `tmp-` if not provided\n  * `postfix`: the optional postfix, fallbacks to `.tmp` on file creation\n  * `template`: [`mkstemp`][3] like filename template, no default\n  * `dir`: the optional temporary directory, fallbacks to system default (guesses from environment)\n  * `tries`: how many times should the function try to get a unique filename before giving up, default `3`\n  * `keep`: signals that the temporary file or directory should not be deleted on exit, default is `false`, means delete\n    * Please keep in mind that it is recommended in this case to call the provided `cleanupCallback` function manually.\n  * `unsafeCleanup`: recursively removes the created temporary directory, even when it's not empty. default is `false`\n\n\n\n[1]: http://nodejs.org/\n[2]: https://www.npmjs.com/browse/depended/tmp\n[3]: http://www.kernel.org/doc/man-pages/online/pages/man3/mkstemp.3.html\n","_attachments":{},"homepage":"https://github.com/benjamingr/tmp-promise#readme","bugs":{"url":"https://github.com/benjamingr/tmp-promise/issues"},"license":"MIT"}