{"name":"tempfile","version":"6.0.1","description":"Get a random temporary file path","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tempfile.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":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","temporary","tempfile","file","path","random","uuid"],"dependencies":{"is-safe-filename":"^0.1.1","temp-dir":"^3.0.0"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"ac7a2bb839ceb765d8030aa2356d6830590a38ef","types":"./index.d.ts","_id":"tempfile@6.0.1","bugs":{"url":"https://github.com/sindresorhus/tempfile/issues"},"homepage":"https://github.com/sindresorhus/tempfile#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-DE4nURsf7nUqYHJKTgOVdpt0SBY5r4us4kbFXqg7KZFB7ih27NxIk3qXv29FtqTaE45stnLKTECmSc9ICuRbDQ==","shasum":"9e0f530aae237660cadfb111c7374c66f39b3927","tarball":"http://registry-npm.ywwl.com/tempfile/download/tempfile-6.0.1.tgz","fileCount":5,"unpackedSize":4078,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDksYfk8rzL501Hu0d25fVvwOT0PzNtJb/bOxWceveUNAIgeKAdkGRHZ0Db0CuFG7r7CGf6a1OjxfvQNFP8iSUT+Tw="}],"size":1915,"noattachment":false,"key":"/tempfile/-/tempfile-6.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tempfile_6.0.1_1769327807654_0.33572951445221433"},"_hasShrinkwrap":false,"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":1769327807802,"_cnpm_publish_time":1769327807802,"dist-tags":{"latest":"6.0.1"}}