{"id":16049249,"url":"https://github.com/ayan4m1/git-clone-sparse","last_synced_at":"2026-01-31T04:01:44.691Z","repository":{"id":225609107,"uuid":"766422470","full_name":"ayan4m1/git-clone-sparse","owner":"ayan4m1","description":"Perform a sparse clone of a Git repository.","archived":false,"fork":false,"pushed_at":"2026-01-22T00:22:25.000Z","size":638,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-22T13:50:09.359Z","etag":null,"topics":["git","nodejs","sparse-checkout","typescript","utility"],"latest_commit_sha":null,"homepage":"","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/ayan4m1.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-03T08:10:12.000Z","updated_at":"2026-01-22T00:22:28.000Z","dependencies_parsed_at":"2024-04-21T00:28:47.254Z","dependency_job_id":"5d093b82-6a68-4eea-85d2-614cee6cf93f","html_url":"https://github.com/ayan4m1/git-clone-sparse","commit_stats":null,"previous_names":["ayan4m1/git-clone-sparse"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ayan4m1/git-clone-sparse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fgit-clone-sparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fgit-clone-sparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fgit-clone-sparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fgit-clone-sparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayan4m1","download_url":"https://codeload.github.com/ayan4m1/git-clone-sparse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fgit-clone-sparse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28928641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["git","nodejs","sparse-checkout","typescript","utility"],"created_at":"2024-10-09T00:15:24.480Z","updated_at":"2026-01-31T04:01:44.677Z","avatar_url":"https://github.com/ayan4m1.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-clone-sparse\n\n[![npm version](https://badge.fury.io/js/@ayan4m1%2Fgit-clone-sparse.svg)](https://badge.fury.io/js/@ayan4m1%2Fgit-clone-sparse)\n\n## features\n\n- Written in TypeScript\n- Small footprint\n- Saves time when cloning large repos\n\n## requirements\n\n- Node 18+\n\n## installation\n\n\u003e npm i -g @ayan4m1/git-clone-sparse\n\n## usage\n\n\u003e git-clone-sparse ./local-dir https://github.com/user/repo ./path1/ ./path2/\n\nOR\n\n\u003e git-clone-sparse -g ./local-dir https://github.com/user/repo \"\\*\\*/\\*.safetensors\"\n\nEach command creates a directory called `local-dir` in your current working directory and then clones the specified URL. If you use **glob mode**, pass the `-g` flag. If you want to use a list of directories instead, do not use the `-g` flag.\n\n## api\n\n```ts\nimport cloneSparse from '@ayan4m1/git-clone-sparse';\n\n...\n\nawait cloneSparse(\n  './new-repo-dir', // working copy directory\n  'https://github.com/ayan4m1/git-clone-sparse' // repo URL\n  ['./README.md'] // paths to include,\n  {\n    globs: false,\n    force: false\n  } // optional options object\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayan4m1%2Fgit-clone-sparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayan4m1%2Fgit-clone-sparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayan4m1%2Fgit-clone-sparse/lists"}