{"_id":"temp-write","_rev":"4629141","name":"temp-write","description":"Write data to a random temporary file","dist-tags":{"latest":"6.0.1"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-10T18:46:51.000Z","created":"2014-01-01T00:35:20.906Z","6.0.1":"2026-01-25T08:15:11.413Z","6.0.0":"2024-07-26T14:22:03.498Z","5.0.0":"2021-05-03T09:15:36.081Z","4.0.0":"2019-04-28T14:15:56.186Z","3.4.0":"2017-12-27T09:14:21.902Z","3.3.0":"2017-05-11T13:22:03.772Z","3.2.0":"2017-03-28T16:20:58.599Z","3.1.0":"2017-02-17T10:33:58.669Z","3.0.0":"2017-01-28T09:47:01.370Z","2.1.0":"2015-11-14T12:53:34.234Z","2.0.1":"2015-10-04T17:31:18.090Z","2.0.0":"2015-10-03T13:50:32.457Z","1.1.2":"2015-06-30T12:05:01.140Z","1.1.1":"2015-05-07T19:44:36.823Z","1.1.0":"2014-10-03T14:26:49.089Z","1.0.0":"2014-08-13T16:20:33.526Z","0.3.1":"2014-06-10T20:33:55.793Z","0.3.0":"2014-04-02T17:22:37.509Z","0.2.0":"2014-02-02T17:08:29.098Z","0.1.1":"2014-01-01T16:01:26.496Z","0.1.0":"2014-01-01T00:35:20.906Z"},"users":{"dukewan":true,"recursion_excursion":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"versions":{"6.0.1":{"name":"temp-write","version":"6.0.1","description":"Write data to a random temporary file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsc index.d.ts"},"keywords":["temp","temporary","tempfile","file","filename","path","random","write","fs","string","buffer","uint8array","stream","data"],"dependencies":{"graceful-fs":"^4.2.11","is-stream":"^4.0.1","temp-dir":"^3.0.0"},"devDependencies":{"ava":"^6.1.3","typescript":"^5.5.4","uint8array-extras":"^1.4.0","xo":"^0.59.2"},"gitHead":"990c5cb02ef70eaf0e0f8d1beeb81ec488fabe6f","types":"./index.d.ts","_id":"temp-write@6.0.1","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"shasum":"b1ed81e80e120ba4957db3e01e010669d7c15870","size":2582,"noattachment":false,"key":"/temp-write/-/temp-write-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-6.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/temp-write_6.0.1_1769328911275_0.0707818219169074"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-25T08:15:11.413Z","publish_time":1769328911413,"_source_registry_name":"default","_cnpm_publish_time":1769328911413},"6.0.0":{"name":"temp-write","version":"6.0.0","description":"Write data to a random temporary file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsc index.d.ts"},"keywords":["temp","temporary","tempfile","file","filename","path","random","write","fs","string","buffer","uint8array","stream","data"],"dependencies":{"graceful-fs":"^4.2.11","is-stream":"^4.0.1","temp-dir":"^3.0.0"},"devDependencies":{"ava":"^6.1.3","typescript":"^5.5.4","uint8array-extras":"^1.4.0","xo":"^0.59.2"},"_id":"temp-write@6.0.0","gitHead":"465ccb01838960ec8834e17a4282ee0d282dc3ba","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"shasum":"00efe9beec49e1943061d15cc09f2d2cf6a767eb","size":2425,"noattachment":false,"key":"/temp-write/-/temp-write-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/temp-write_6.0.0_1722003723324_0.7645292037441822"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-26T14:22:03.498Z","publish_time":1722003723498,"_source_registry_name":"default","_cnpm_publish_time":1722003723498},"5.0.0":{"name":"temp-write","version":"5.0.0","description":"Write string/buffer/stream to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","tempfile","file","filename","path","random","write","fs","string","buffer","stream"],"dependencies":{"graceful-fs":"^4.2.6","is-stream":"^2.0.0","temp-dir":"^2.0.0","uuid":"^8.3.2"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"364b1e19300dc72617f1b06686c36f84bcd326dd","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@5.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"dd9aafebc93ce2067e962a1665f3873e20efb498","size":2576,"noattachment":false,"key":"/temp-write/-/temp-write-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/temp-write_5.0.0_1620033335948_0.6588972219040792"},"_hasShrinkwrap":false,"publish_time":1620033336081,"_cnpm_publish_time":1620033336081},"4.0.0":{"name":"temp-write","version":"4.0.0","description":"Write string/buffer/stream to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","tempfile","file","filename","path","random","write","fs","string","buffer","stream"],"dependencies":{"graceful-fs":"^4.1.15","is-stream":"^2.0.0","make-dir":"^3.0.0","temp-dir":"^1.0.0","uuid":"^3.3.2"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"199851974c8af0618e2f1a77023384823f2ae948","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@4.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cd2e0825fc826ae72d201dc26eef3bf7e6fc9320","size":2559,"noattachment":false,"key":"/temp-write/-/temp-write-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/temp-write_4.0.0_1556460955936_0.611654621221948"},"_hasShrinkwrap":false,"publish_time":1556460956186,"_cnpm_publish_time":1556460956186},"3.4.0":{"name":"temp-write","version":"3.4.0","description":"Write string/buffer/stream to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer","stream"],"dependencies":{"graceful-fs":"^4.1.2","is-stream":"^1.1.0","make-dir":"^1.0.0","pify":"^3.0.0","temp-dir":"^1.0.0","uuid":"^3.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"2f44ea7a76836d4deb31ed9672dc5c763bffef17","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@3.4.0","_shasum":"8cff630fb7e9da05f047c74ce4ce4d685457d492","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8cff630fb7e9da05f047c74ce4ce4d685457d492","size":2214,"noattachment":false,"key":"/temp-write/-/temp-write-3.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-3.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/temp-write-3.4.0.tgz_1514366061788_0.007875769631937146"},"directories":{},"publish_time":1514366061902,"_hasShrinkwrap":false,"_cnpm_publish_time":1514366061902},"3.3.0":{"name":"temp-write","version":"3.3.0","description":"Write string/buffer/stream to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer","stream"],"dependencies":{"graceful-fs":"^4.1.2","is-stream":"^1.1.0","make-dir":"^1.0.0","pify":"^2.2.0","temp-dir":"^1.0.0","uuid":"^3.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"944fbee374d4b02d703c233164b6e32d7489b620","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@3.3.0","_shasum":"c1a96de2b36061342eae81f44ff001aec8f615a9","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c1a96de2b36061342eae81f44ff001aec8f615a9","size":2236,"noattachment":false,"key":"/temp-write/-/temp-write-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-3.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/temp-write-3.3.0.tgz_1494508923507_0.46963617275469005"},"directories":{},"publish_time":1494508923772,"_hasShrinkwrap":false,"_cnpm_publish_time":1494508923772},"3.2.0":{"name":"temp-write","version":"3.2.0","description":"Write string/buffer/stream to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer","stream"],"dependencies":{"graceful-fs":"^4.1.2","is-stream":"^1.1.0","mkdirp":"^0.5.0","pify":"^2.2.0","temp-dir":"^1.0.0","uuid":"^3.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"552520ae63e3c5b50bb2ce46973117d2193276e9","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@3.2.0","_shasum":"9de5c847b952918ad2be13433da25772cfed5241","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9de5c847b952918ad2be13433da25772cfed5241","size":2237,"noattachment":false,"key":"/temp-write/-/temp-write-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/temp-write-3.2.0.tgz_1490718056600_0.03446158184669912"},"directories":{},"publish_time":1490718058599,"_cnpm_publish_time":1490718058599,"_hasShrinkwrap":false},"3.1.0":{"name":"temp-write","version":"3.1.0","description":"Write string/buffer/stream to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^4.1.2","is-stream":"^1.1.0","mkdirp":"^0.5.0","pify":"^2.2.0","uuid":"^3.0.1"},"devDependencies":{"ava":"*","proxyquire":"^1.7.11","xo":"*"},"gitHead":"e56aad195cd0abab85a7e6fed4ddbd742657d3d1","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@3.1.0","_shasum":"47dfa38c5bd87ba3b7e91230c6c9668763c12a21","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"47dfa38c5bd87ba3b7e91230c6c9668763c12a21","size":2333,"noattachment":false,"key":"/temp-write/-/temp-write-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/temp-write-3.1.0.tgz_1487327636744_0.9902394199743867"},"directories":{},"publish_time":1487327638669,"_cnpm_publish_time":1487327638669,"_hasShrinkwrap":false},"3.0.0":{"name":"temp-write","version":"3.0.0","description":"Write string/buffer/stream to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^4.1.2","is-stream":"^1.1.0","mkdirp":"^0.5.0","pify":"^2.2.0","uuid":"^3.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"9afff0cc51c9797d4b824eadd9ca5b5a36abdc44","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@3.0.0","_shasum":"790be46442b1b95e6e3d222e8d2a347a5fe9ff9e","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"790be46442b1b95e6e3d222e8d2a347a5fe9ff9e","size":2223,"noattachment":false,"key":"/temp-write/-/temp-write-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/temp-write-3.0.0.tgz_1485596821135_0.7601475566625595"},"directories":{},"publish_time":1485596821370,"_cnpm_publish_time":1485596821370,"_hasShrinkwrap":false},"2.1.0":{"name":"temp-write","version":"2.1.0","description":"Write string/buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.0","os-tmpdir":"^1.0.0","pify":"^2.2.0","pinkie-promise":"^2.0.0","uuid":"^2.0.1"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"65094b982a8fea4ba2dc8938fa54ed7843e13290","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@2.1.0","_shasum":"59890918e0ef09d548aaa342f4bd3409d8404e96","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"59890918e0ef09d548aaa342f4bd3409d8404e96","size":2032,"noattachment":false,"key":"/temp-write/-/temp-write-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1447505614234,"_cnpm_publish_time":1447505614234,"_hasShrinkwrap":false},"2.0.1":{"name":"temp-write","version":"2.0.1","description":"Write string/buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.0","os-tmpdir":"^1.0.0","pify":"^2.2.0","pinkie-promise":"^1.0.0","uuid":"^2.0.1"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"66fcc89c8124ce0eabde8b3c14c384e018646fba","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@2.0.1","_shasum":"938608be512d9dc74551092dbe146b55ece56bd6","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"938608be512d9dc74551092dbe146b55ece56bd6","size":2030,"noattachment":false,"key":"/temp-write/-/temp-write-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1443979878090,"_cnpm_publish_time":1443979878090,"_hasShrinkwrap":false},"2.0.0":{"name":"temp-write","version":"2.0.0","description":"Write string/buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.0","os-tmpdir":"^1.0.0","pify":"^2.2.0","uuid":"^2.0.1"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"985ea544148bdcd15df4d5e960ddb6c0772c4194","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@2.0.0","_shasum":"8b16500bf483318bb4054e92d8ecd83508f4c5c6","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8b16500bf483318bb4054e92d8ecd83508f4c5c6","size":2004,"noattachment":false,"key":"/temp-write/-/temp-write-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1443880232457,"_cnpm_publish_time":1443880232457,"_hasShrinkwrap":false},"1.1.2":{"name":"temp-write","version":"1.1.2","description":"Write string/buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^4.1.2","mkdirp":"^0.5.0","os-tmpdir":"^1.0.0","uuid":"^2.0.1"},"devDependencies":{"mocha":"*"},"gitHead":"357181ee5ddc22f517fa40ddb44c460f79a4b7ed","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@1.1.2","_shasum":"75b57a3cd9f802beaae3762b11e66ab1f4afd947","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"75b57a3cd9f802beaae3762b11e66ab1f4afd947","size":1976,"noattachment":false,"key":"/temp-write/-/temp-write-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-1.1.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1435665901140,"_cnpm_publish_time":1435665901140,"_hasShrinkwrap":false},"1.1.1":{"name":"temp-write","version":"1.1.1","description":"Write string/buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-write.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^3.0.1","mkdirp":"^0.5.0","os-tmpdir":"^1.0.0","uuid":"^2.0.1"},"devDependencies":{"mocha":"*"},"gitHead":"f14df5b491ce0c5c171d48aaa88120e63414e4e2","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write#readme","_id":"temp-write@1.1.1","_shasum":"5e59e5544a5086245548a49de01a65af2ae8c920","_from":".","_npmVersion":"2.9.0","_nodeVersion":"0.12.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5e59e5544a5086245548a49de01a65af2ae8c920","size":1972,"noattachment":false,"key":"/temp-write/-/temp-write-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-1.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1431027876823,"_cnpm_publish_time":1431027876823,"_hasShrinkwrap":false},"1.1.0":{"name":"temp-write","version":"1.1.0","description":"Write string/buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^3.0.1","mkdirp":"^0.5.0","uuid":"^2.0.1"},"devDependencies":{"mocha":"*"},"gitHead":"d8172c675a1f3c52b054ff9daa16b8a325be0806","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@1.1.0","_shasum":"ac7e8e3ab8117d8a9ff262e3be1500b90a9a56f0","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"ac7e8e3ab8117d8a9ff262e3be1500b90a9a56f0","size":1263,"noattachment":false,"key":"/temp-write/-/temp-write-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-1.1.0.tgz"},"directories":{},"publish_time":1412346409089,"_cnpm_publish_time":1412346409089,"_hasShrinkwrap":false},"1.0.0":{"name":"temp-write","version":"1.0.0","description":"Write string/buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^3.0.1","mkdirp":"^0.5.0","uuid":"^1.4.1"},"devDependencies":{"mocha":"*"},"gitHead":"d945c56e4f0b92938b8dc8f951bafe692b70a8e6","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@1.0.0","_shasum":"17fcd1db03ff36318a68a03a9d06b884b1943de3","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"17fcd1db03ff36318a68a03a9d06b884b1943de3","size":1260,"noattachment":false,"key":"/temp-write/-/temp-write-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-1.0.0.tgz"},"directories":{},"publish_time":1407946833526,"_cnpm_publish_time":1407946833526,"_hasShrinkwrap":false},"0.3.1":{"name":"temp-write","version":"0.3.1","description":"Write String/Buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^3.0.1","mkdirp":"^0.5.0","uuid":"^1.4.1"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@0.3.1","_shasum":"0ba3e485af0290a58eea21e6b1d3b4bf54063ee8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"0ba3e485af0290a58eea21e6b1d3b4bf54063ee8","size":1290,"noattachment":false,"key":"/temp-write/-/temp-write-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-0.3.1.tgz"},"directories":{},"publish_time":1402432435793,"_cnpm_publish_time":1402432435793,"_hasShrinkwrap":false},"0.3.0":{"name":"temp-write","version":"0.3.0","description":"Write String/Buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"^2.0.0","mkdirp":"^0.3.5","uuid":"^1.4.1"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@0.3.0","dist":{"shasum":"c30f5947b6c2996c506dbb02bc9aeb9af00f0598","size":1285,"noattachment":false,"key":"/temp-write/-/temp-write-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1396459357509,"_cnpm_publish_time":1396459357509,"_hasShrinkwrap":false},"0.2.0":{"name":"temp-write","version":"0.2.0","description":"Write String/Buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","filename","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"~2.0.0","uuid":"~1.4.1","mkdirp":"~0.3.5"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@0.2.0","dist":{"shasum":"c7b7030ea691424fa8a6504c939e92a1861bd93d","size":1260,"noattachment":false,"key":"/temp-write/-/temp-write-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1391360909098,"_cnpm_publish_time":1391360909098,"_hasShrinkwrap":false},"0.1.1":{"name":"temp-write","version":"0.1.1","description":"Write String/Buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"~2.0.0","tempfile":"~0.1.2"},"devDependencies":{"mocha":"*"},"readmeFilename":"readme.md","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@0.1.1","dist":{"shasum":"0b6467838dd77fbf7f62a0c93da879732ffda932","size":1043,"noattachment":false,"key":"/temp-write/-/temp-write-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1388592086496,"_cnpm_publish_time":1388592086496,"_hasShrinkwrap":false},"0.1.0":{"name":"temp-write","version":"0.1.0","description":"Write String/Buffer to a random temp file","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/temp-write"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["tmp","temp","temporary","tempfile","file","path","random","rand","write","fs","string","buffer"],"dependencies":{"graceful-fs":"~2.0.0","tempfile":"~0.1.2"},"devDependencies":{"mocha":"*"},"readmeFilename":"readme.md","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"homepage":"https://github.com/sindresorhus/temp-write","_id":"temp-write@0.1.0","dist":{"shasum":"92bd22e220e3001ef166627b7beeffead310f597","size":1050,"noattachment":false,"key":"/temp-write/-/temp-write-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-write/download/temp-write-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1388536520906,"_cnpm_publish_time":1388536520906,"_hasShrinkwrap":false}},"readme":"# temp-write\n\n> Write data to a random temporary file\n\n## Install\n\n```sh\nnpm install temp-write\n```\n\n## Usage\n\n```js\nimport fs from 'node:fs';\nimport tempWrite from 'temp-write';\n\nconst filePath = tempWrite.sync('unicorn');\n//=> '/var/folders/_1/tk89k8215ts0rg0kmb096nj80000gn/T/4049f192-43e7-43b2-98d9-094e6760861b'\n\nfs.readFileSync(filePath, 'utf8');\n//=> 'unicorn'\n\ntempWrite.sync('unicorn', 'pony.png');\n//=> '/var/folders/_1/tk89k8215ts0rg0kmb096nj80000gn/T/4049f192-43e7-43b2-98d9-094e6760861b/pony.png'\n\ntempWrite.sync('unicorn', 'rainbow/cake/pony.png');\n//=> '/var/folders/_1/tk89k8215ts0rg0kmb096nj80000gn/T/4049f192-43e7-43b2-98d9-094e6760861b/rainbow/cake/pony.png'\n```\n\n## API\n\n### tempWrite(fileContent, filePath?)\n\nReturns a `Promise` for the file path of the temporary file.\n\n### tempWrite.sync(fileContent, filePath?)\n\nReturns the file path of the temporary file.\n\n#### fileContent\n\nType: `string | Uint8Array | stream.Readable`\n\nThe data to write to the temporary file. Streams are supported only with the async API.\n\n#### filePath\n\nType: `string`\\\nExamples: `'img.png'` `'foo/bar/baz.png'`\n\nOptionally specify a file path which is appended to the random path.\n\n## Related\n\n- [tempy](https://github.com/sindresorhus/tempy) - Get a random temporary file or directory path\n","_attachments":{},"homepage":"https://github.com/sindresorhus/temp-write#readme","bugs":{"url":"https://github.com/sindresorhus/temp-write/issues"},"license":"MIT"}