{"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":{"integrity":"sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==","shasum":"7f147b42ee41234cc6ba3138cd8e8aa2302acffa","tarball":"http://registry-npm.ywwl.com/temp-dir/download/temp-dir-3.0.0.tgz","fileCount":5,"unpackedSize":3155,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmfnf6uDXz2Cy/ffzEvFlXl+YUAk9lBGQXBquzLdg9/wIhAK98CKkL6FuEu/QbmYaTmPJr0NwuT9Fcu1LQKs2rgf3X"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMThzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4KQ//dCqf5wrIROerKMUuDO61QBupavhOvNVrvdzaDcGwCRnfSfYL\r\nk35gZenLABzR7BggaJPMjA0TyU7lNgmkTStKjfBpz5qvTFodr4oDp3Bjnpu/\r\nOqibYRjCC0Uz2KeMgnxSN9Pi/RSRU00h19Qxn8bpzpe5vZ9Nexq22asm7zSh\r\noZgRZRzaXisS+Kk7xJFL2MJOYaglM3P+fA9p+aUQL7UYx+iMNKOnqjM7CttN\r\nmN47WHnYS1VTkwviyaFizaUwSdLaOwz24WsKCTYL3K4gD1V0hiHMmPJt/F9D\r\nVifUYQQQuZsxCCLWrMAiSGQIPmrJshkjk6ojpsz1fSTA3NFBcM5NTKrqHFqY\r\nLrH+FSdJWXiT0hYQ/5b0WolX0iGgzUWu/f8cGOSBbUiLelh/drM0NisKT5Np\r\nOxwLBlqNEGJr7myhGzH29Tx1kTT5UCHJJySaQH4Ev3NC/iA+6bX2tY/I5kAq\r\nxZDdmPbBSppYNrbH/cpupyXmtHw5fgnccAAe3LUO5E4M53loHr1+4wKJvv2i\r\niOxhiy0rL7CpS/7unojrbQkEIpVr7EJDki1Oq7LVElI3YcBtzwqSHW8a6033\r\nCLK4c71NP+Sg9n5FDXoyU/W0OpzYBeUcOL4mu6ugzfR7ha1Zs0uyn+7ZcaLp\r\nLBG20QHp/XPmFrFLsE+kG6qg8XR15pPRtnY=\r\n=FNhO\r\n-----END PGP SIGNATURE-----\r\n","size":1639,"noattachment":false,"key":"/temp-dir/-/temp-dir-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/temp-dir_3.0.0_1664170099512_0.9446963221233429"},"_hasShrinkwrap":false,"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","publish_time":1664170099727,"_cnpm_publish_time":1664170099727,"dist-tags":{"latest":"3.0.0"}}