{"id":20073585,"url":"https://github.com/ragingwind/cache-github-repo","last_synced_at":"2025-10-08T16:27:10.845Z","repository":{"id":57192497,"uuid":"99800711","full_name":"ragingwind/cache-github-repo","owner":"ragingwind","description":"Download files of the github repository at the local cache by managing commit tracing","archived":false,"fork":false,"pushed_at":"2017-08-10T04:39:40.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T12:16:52.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ragingwind.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}},"created_at":"2017-08-09T11:25:57.000Z","updated_at":"2024-08-24T22:54:51.000Z","dependencies_parsed_at":"2022-08-24T05:21:13.813Z","dependency_job_id":null,"html_url":"https://github.com/ragingwind/cache-github-repo","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fcache-github-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fcache-github-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fcache-github-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fcache-github-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragingwind","download_url":"https://codeload.github.com/ragingwind/cache-github-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241504275,"owners_count":19973207,"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-11-13T14:46:53.477Z","updated_at":"2025-10-08T16:27:05.789Z","avatar_url":"https://github.com/ragingwind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cache-github-repo [![Build Status](https://travis-ci.org/ragingwind/cache-github-repo.svg?branch=master)](https://travis-ci.org/ragingwind/cache-github-repo)\n\n\u003e Download files of the github repository at the local cache by managing commit tracing\n\n\n## Install\n\n```\n$ npm install cache-github-repo\n```\n\n\n## Usage\n\n```js\nconst CacheGithubRepo = require('cache-github-repo');\n\nconst cache = new CacheGithubRepo()\n\nif (await cache.updatable(repo, './node_modules/')) {\n\tawait cache.cache('zeit/next.js', path.join('dest'))\n}\n```\n\n## API\n\n### CacheGithubRepo()\n\nIt returns the instance of cache manager\n\n#### updatable\n\nCheck the repo can be updated, is out of dated\n\n##### repo\n\nType: `string`\n\nRepository names on github. ex) `ragingwind/cache-github-repo`\n\n##### cachePath\n\nType: `string`\n\nPath for saving of cache manifest file, named by `cache-github-repo.json`. Default is parent's `node_module/.cache`\n\n#### cache\n\nCache the repo to local\n\n##### repo\n\nType: `string`\n\nRepository names on github. ex) `ragingwind/cache-github-repo`\n\n##### dest\n\nType: `string`\n\nunzipped files after downloading\n\n## License\n\nMIT © [Jimmy Moon](http://ragingwind.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fcache-github-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragingwind%2Fcache-github-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fcache-github-repo/lists"}