{"name":"tempfile","version":"6.0.0","keywords":["temp","temporary","tempfile","file","path","random","uuid"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"tempfile@6.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/tempfile#readme","bugs":{"url":"https://github.com/sindresorhus/tempfile/issues"},"dist":{"shasum":"ced9bb9752ede62b9437a6c851933ac924630bf8","tarball":"http://registry-npm.ywwl.com/tempfile/download/tempfile-6.0.0.tgz","fileCount":5,"integrity":"sha512-oL1ErFEJoU4F6jf+fJ1s4aq2lvETCcZ/OqA0rO/kMYnawUYVUf1Tdfj95Fk1VKA0iNTHV7zk6nk2FbhE1vMY6g==","signatures":[{"sig":"MEUCIHSTwZV0KTETOszZSFS8r3i2zKsPAMhgEKXhr/IoXYLRAiEA2XTOKDVwNwUumeoqb2s/LvJcT+P1gT02ANLTr0sL/EQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3984,"size":1884,"noattachment":false,"key":"/tempfile/-/tempfile-6.0.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"f653871e1dff3f8bbe856fd5ca87c20f61abbcee","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/tempfile.git","type":"git"},"_npmVersion":"11.7.0","description":"Get a random temporary file path","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","dependencies":{"temp-dir":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^1.2.3","ava":"^6.4.1","tsd":"^0.33.0"},"_npmOperationalInternal":{"tmp":"tmp/tempfile_6.0.0_1769190921091_0.8535501647048598","host":"s3://npm-registry-packages-npm-production"},"readme":"# tempfile\n\n> Get a random temporary file path\n\n**Checkout out [`tempy`](https://github.com/sindresorhus/tempy) which is a better take on this module.**\n\n## Install\n\n```sh\nnpm install tempfile\n```\n\n## Usage\n\n```js\nimport tempfile from 'tempfile';\n\ntempfile();\n//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/6271e235-13b9-4138-8b9b-ee2f26c09ce3'\n```\n\n## API\n\n### tempfile(options?)\n\n#### options\n\nType: `object`\n\n##### extension\n\nType: `string`\n\nA file extension to append to the path.\n\n```js\nimport tempfile from 'tempfile';\n\ntempfile();\n//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/6271e235-13b9-4138-8b9b-ee2f26c09ce3'\n\ntempfile({extension: 'png'});\n//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/4049f192-43e7-43b2-98d9-094e6760861b.png'\n```\n\n## Related\n\n- [tempy](https://github.com/sindresorhus/tempy) - Get a random temporary file or directory path\n- [temp-write](https://github.com/sindresorhus/temp-write) - Write string/buffer/stream to a random temp file\n","publish_time":1769190921239,"_cnpm_publish_time":1769190921239,"dist-tags":{"latest":"6.0.1"}}