{"id":13526921,"url":"https://github.com/sindresorhus/temp-dir","last_synced_at":"2025-04-04T17:10:05.431Z","repository":{"id":55414482,"uuid":"86433103","full_name":"sindresorhus/temp-dir","owner":"sindresorhus","description":"Get the real path of the system temp directory","archived":false,"fork":false,"pushed_at":"2022-09-26T06:59:38.000Z","size":12,"stargazers_count":83,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-27T19:24:26.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2017-03-28T08:14:02.000Z","updated_at":"2024-12-07T09:15:31.000Z","dependencies_parsed_at":"2022-08-14T23:50:34.915Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/temp-dir","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftemp-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftemp-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftemp-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ftemp-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/temp-dir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217222,"owners_count":20903009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:01:37.493Z","updated_at":"2025-04-04T17:10:05.402Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Repository","JavaScript"],"sub_categories":["Filesystem"],"readme":"# temp-dir\n\n\u003e 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//=\u003e '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T'\n```\n\n```js\nimport os from 'node:os';\n\nconsole.log(os.tmpdir());\n//=\u003e '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // \u003c= Symlink\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Ftemp-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Ftemp-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Ftemp-dir/lists"}