{"id":13670894,"url":"https://github.com/LinusU/node-cachedir","last_synced_at":"2025-04-27T13:33:07.660Z","repository":{"id":10852909,"uuid":"13135521","full_name":"LinusU/node-cachedir","owner":"LinusU","description":"Get a directory for your caching needs","archived":false,"fork":false,"pushed_at":"2023-07-24T13:21:32.000Z","size":92,"stargazers_count":26,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T04:58:17.893Z","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/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-26T22:12:50.000Z","updated_at":"2023-09-27T16:11:55.000Z","dependencies_parsed_at":"2024-06-12T23:17:17.993Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/node-cachedir","commit_stats":{"total_commits":47,"total_committers":7,"mean_commits":6.714285714285714,"dds":"0.17021276595744683","last_synced_commit":"1d8619a927cfc6cafb4543ed3ce46bc6558be99f"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-cachedir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-cachedir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-cachedir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-cachedir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/node-cachedir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251145740,"owners_count":21543093,"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-02T09:00:52.290Z","updated_at":"2025-04-27T13:33:02.642Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","readme":"# node-cachedir\n\nProvides a directory where the OS wants you to store cached files.\n\n## Installation\n\n```sh\nnpm install --save cachedir\n```\n\n## Usage\n\n```javascript\nconst cachedir = require('cachedir')\n\nconsole.log(cachedir('myapp'))\n// e.g.\n//=\u003e '/Users/linus/Library/Caches/myapp'\n//=\u003e '/home/linus/.cache/myapp'\n//=\u003e 'C:\\Users\\linus\\AppData\\Local\\myapp\\Cache'\n```\n\n## API\n\n### `cachedir(id)`\n\n- `id` (`string`, required)\n- returns `string`\n\nReturn path to an appropriate place to store cache files.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinusU%2Fnode-cachedir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLinusU%2Fnode-cachedir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinusU%2Fnode-cachedir/lists"}