{"_id":"temp-dir","_rev":"2944152","name":"temp-dir","description":"Get the real path of the system temp directory","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-04-21T09:46:01.000Z","created":"2017-03-28T08:20:16.976Z","3.0.0":"2022-09-26T05:28:19.727Z","2.0.0":"2019-04-28T14:00:41.966Z","1.0.0":"2017-03-28T08:20:16.976Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-dir.git"},"versions":{"3.0.0":{"name":"temp-dir","version":"3.0.0","description":"Get the real path of the system temp directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-dir.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","tmpdir","os","system","real","path","realpath","resolved","temporary","directory","folder"],"devDependencies":{"ava":"^4.3.3","quibble":"^0.6.14","tsd":"^0.24.1","xo":"^0.52.3"},"ava":{"nodeArguments":["--loader=quibble"]},"gitHead":"b84f39c50d4767e8f1b19ba920665c0ed16d6e95","bugs":{"url":"https://github.com/sindresorhus/temp-dir/issues"},"homepage":"https://github.com/sindresorhus/temp-dir#readme","_id":"temp-dir@3.0.0","_nodeVersion":"14.19.3","_npmVersion":"8.3.2","dist":{"shasum":"7f147b42ee41234cc6ba3138cd8e8aa2302acffa","size":1639,"noattachment":false,"key":"/temp-dir/-/temp-dir-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-dir/download/temp-dir-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/temp-dir_3.0.0_1664170099512_0.9446963221233429"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-26T05:30:53.881Z","publish_time":1664170099727,"_cnpm_publish_time":1664170099727},"2.0.0":{"name":"temp-dir","version":"2.0.0","description":"Get the real path of the system temp directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-dir.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["temp","tmpdir","os","system","real","path","realpath","resolved","temporary","directory","folder"],"devDependencies":{"ava":"^1.4.1","proxyquire":"^2.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"f71cb263d0a7abba1ba75083b5ff86e09e258179","bugs":{"url":"https://github.com/sindresorhus/temp-dir/issues"},"homepage":"https://github.com/sindresorhus/temp-dir#readme","_id":"temp-dir@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"bde92b05bdfeb1516e804c9c00ad45177f31321e","size":1776,"noattachment":false,"key":"/temp-dir/-/temp-dir-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-dir/download/temp-dir-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/temp-dir_2.0.0_1556460041811_0.06684040845979555"},"_hasShrinkwrap":false,"publish_time":1556460041966,"_cnpm_publish_time":1556460041966},"1.0.0":{"name":"temp-dir","version":"1.0.0","description":"Get the real path of the system temp directory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/temp-dir.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","dir","tmpdir","os","system","real","path","realpath","resolved"],"devDependencies":{"ava":"*","proxyquire":"^1.7.11","xo":"*"},"gitHead":"9569a24ba9e5be1bf0eba644f748b9bebbcb083b","bugs":{"url":"https://github.com/sindresorhus/temp-dir/issues"},"homepage":"https://github.com/sindresorhus/temp-dir#readme","_id":"temp-dir@1.0.0","_shasum":"0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d","size":1675,"noattachment":false,"key":"/temp-dir/-/temp-dir-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/temp-dir/download/temp-dir-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/temp-dir-1.0.0.tgz_1490689216746_0.8579589340370148"},"directories":{},"publish_time":1490689216976,"_hasShrinkwrap":false,"_cnpm_publish_time":1490689216976}},"readme":"# temp-dir\n\n> Get the real path of the system temp directory\n\n[The `os.tmpdir()` built-in doesn't return the real path.](https://github.com/nodejs/node/issues/11422) That can cause problems when the returned path is a symlink, which is the case on macOS. Use this module to get the resolved path.\n\n## Install\n\n```sh\nnpm install temp-dir\n```\n\n## Usage\n\n```js\nimport temporaryDirectory from 'temp-dir';\n\nconsole.log(temporaryDirectory);\n//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T'\n```\n\n```js\nimport os from 'node:os';\n\nconsole.log(os.tmpdir());\n//=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // <= Symlink\n```\n","_attachments":{},"homepage":"https://github.com/sindresorhus/temp-dir#readme","bugs":{"url":"https://github.com/sindresorhus/temp-dir/issues"},"license":"MIT"}