{"id":15620664,"url":"https://github.com/justjavac/deno_cache_dir","last_synced_at":"2025-04-28T13:41:31.732Z","repository":{"id":39615072,"uuid":"288737689","full_name":"justjavac/deno_cache_dir","owner":"justjavac","description":"Returns the path to the user's cache directory.","archived":false,"fork":false,"pushed_at":"2022-07-25T14:07:50.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T18:03:50.071Z","etag":null,"topics":["deno","deno-mod","deno-module","deno-starter","directory"],"latest_commit_sha":null,"homepage":"https://deno.land/x/cache_dir","language":"TypeScript","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/justjavac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-19T13:21:18.000Z","updated_at":"2022-05-31T08:15:42.000Z","dependencies_parsed_at":"2022-09-15T21:40:43.773Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno_cache_dir","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"justjavac/deno_starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_cache_dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_cache_dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_cache_dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_cache_dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno_cache_dir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251321274,"owners_count":21570705,"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":["deno","deno-mod","deno-module","deno-starter","directory"],"created_at":"2024-10-03T09:01:54.124Z","updated_at":"2025-04-28T13:41:31.691Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_cache_dir\n\n[![tag](https://img.shields.io/github/release/justjavac/deno_cache_dir)](https://github.com/justjavac/deno_cache_dir/releases)\n[![Build Status](https://github.com/justjavac/deno_cache_dir/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno_cache_dir/actions)\n[![license](https://img.shields.io/github/license/justjavac/deno_cache_dir)](https://github.com/justjavac/deno_cache_dir/blob/master/LICENSE)\n[![](https://img.shields.io/badge/deno-v1.3-green.svg)](https://github.com/denoland/deno)\n\nReturns the path to the user's cache directory.\n\n\u003e _In v1.1.2(2020.06.26), Deno\n\u003e [Remove `Deno.dir` and dirs dependency #6385](https://github.com/denoland/deno/pull/6385)_\n\nThe returned value depends on the operating system and is either a string,\ncontaining a value from the following table, or `null`.\n\n| Platform | Value                               | Example                          |\n| -------- | ----------------------------------- | -------------------------------- |\n| Linux    | `$XDG_CACHE_HOME` or `$HOME`/.cache | /home/justjavac/.cache           |\n| macOS    | `$HOME`/Library/Caches              | /Users/justjavac/Library/Caches  |\n| Windows  | `$LOCALAPPDATA`                     | C:\\Users\\justjavac\\AppData\\Local |\n\n## Usage\n\nRequires `allow-env` permission.\n\nReturns `null` if there is no applicable directory or if any other error occurs.\n\n```ts\nimport cacheDir from \"https://deno.land/x/cache_dir/mod.ts\";\n\ncacheDir();\n// Lin: \"/home/justjavac/.cache\"\n// Mac: \"/Users/justjavac/Library/Caches\"\n// Win: \"C:\\Users\\justjavac\\AppData\\Local\"\n```\n\n## License\n\n[deno_cache_dir](https://github.com/justjavac/deno_cache_dir) is released under\nthe MIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_cache_dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno_cache_dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_cache_dir/lists"}