{"_id":"degit@3.10.1","bin":{"degit":"degit"},"bugs":{"url":"https://github.com/Rich-Harris/degit/issues"},"dist":{"shasum":"9eab9b34e5abccd906ea8cd7454e4bcd647d17a8","tarball":"http://registry-npm.ywwl.com/degit/download/degit-3.10.1.tgz","integrity":"sha512-uk/EzGpCqFG7EYggYyz2SbLovBSok+dxzuKJywJ7VV77/20k/+P4CxG2qTNLTZOQ6snLsY/0mcipP40OLL2pBg==","fileCount":15,"unpackedSize":507905,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/degit@3.10.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4A8oForAS2Mjc5v/nqhzRj5YPUqKO/Js9JJmNX2KsLgIhALoSjC2f0UcixfO7o1oUMu2FTYZ2nqy+xYnrVouAcTfH"}],"size":159071,"noattachment":false,"key":"/degit/-/degit-3.10.1.tgz"},"main":"dist/index.js","name":"degit","type":"module","types":"dist/index.d.ts","author":{"name":"Rich Harris"},"engines":{"node":">=20.0.0"},"gitHead":"f10346f3da7350a68fdee2061e816239f13e75c0","license":"MIT","scripts":{"dev":"tsdown --config tsdown.config.ts --watch","lint":"oxlint --fix .","perf":"nub perf/bench.ts","test":"vitest run --exclude test/integration/private.test.ts","audit":"nub audit --ignore-unfixable","build":"tsdown --config tsdown.config.ts","format":"oxfmt --write .","knip:ci":"knip","lint:ci":"oxlint .","prepare":"husky","pretest":"nub run build","format:ci":"oxfmt --check .","typecheck":"tsc --noEmit","duplicates:ci":"jscpd --gitignore --reporters console --threshold 5 tsdown.config.ts vitest.config.ts src test","test:coverage":"vitest run --coverage","prepublishOnly":"nub run test","test:integration":"vitest run test/integration","test:integration:release":"nub test/integration/release.ts"},"version":"3.10.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"1a490e17-e1cb-49bc-b0a2-347edbcd0285"},"approver":{"name":"yoglib","email":"yogiboaron@gmail.com"}},"homepage":"https://github.com/Rich-Harris/degit#readme","keywords":["git","scaffolding","template"],"overrides":{"vite":"8.3.4","nanoid":"3.3.18","postcss":"8.5.23","source-map-js":"1.2.2","brace-expansion":"1.1.16"},"devEngines":{"packageManager":{"name":"npm","onFail":"warn","version":"^12.2.0"}},"repository":{"url":"git+https://github.com/Rich-Harris/degit.git","type":"git"},"_npmVersion":"12.2.0","description":"Straightforward project scaffolding","directories":{},"lint-staged":{"**/*":["oxfmt --write --no-error-on-unmatched-pattern","git add"],"*.{js,ts}":["oxlint --fix","git add"]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"},{"name":"yoglib","email":"yogiboaron@gmail.com"}],"_nodeVersion":"24.22.0","packageManager":"npm@12.2.0+sha512.66c2632a94e796649738b2d7894d710c2cc2e1696893823066687f6b0d8a52e5f2b54eeaeaa32ffdc513ecca1e49ff794a5c2ec3f9515d879f1b3182b291cf35","devDependencies":{"mri":"1.1.6","tar":"7.5.21","knip":"6.41.0","vite":"8.3.4","husky":"9.1.7","jscpd":"4.0.9","oxfmt":"0.73.0","oxlint":"1.88.0","tsdown":"0.21.10","vitest":"5.0.4","enquirer":"2.3.6","tiny-glob":"0.2.8","typescript":"6.0.3","@types/node":"25.6.0","fuzzysearch":"1.0.3","lint-staged":"10.5.4","yoctocolors":"2.1.2","isomorphic-git":"1.38.1","https-proxy-agent":"5.0.0","@vitest/coverage-v8":"5.0.4","eslint-plugin-security":"4.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/degit_3.10.1_1792576218215_0.5495980755053433"},"_hasShrinkwrap":false,"readme":"# degit — straightforward project scaffolding\n\n[![Known Vulnerabilities](https://snyk.io/test/npm/degit/badge.svg)](https://snyk.io/test/npm/degit)\n[![install size](https://packagephobia.com/badge?p=degit)](https://packagephobia.com/result?p=degit)\n[![npm package version](https://badgen.net/npm/v/degit)](https://npm.im/degit)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v3.0%20adopted-ff69b4.svg)](docs/CODE_OF_CONDUCT.md)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n\n**degit** makes copies of git repositories. When you run `degit some-user/some-repo`, it finds the latest commit on https://github.com/some-user/some-repo and downloads the associated tar file to the platform-appropriate cache directory if it doesn't already exist locally. (This is much quicker than using `git clone`, because you're not downloading the entire git history.)\n\n`degit` resolves refs through an internal git backend, downloads tar snapshots by default, and falls back to SSH cloning when tarball fetches or extraction fail. Public HTTPS sources do not need a local `git` binary on your `PATH`, but SSH/private repositories still do.\n\n## Requirements\n\n- Node.js **20** or later (see `engines` in `package.json`)\n\n## Installation\n\n```bash\nnpm install -g degit\n```\n\n## Quick start\n\nDownload the default branch of a GitHub repo to the current directory:\n\n```bash\ndegit user/repo\n```\n\nDownload to a new folder:\n\n```bash\ndegit user/repo my-new-project\ndegit -r user/repo\n```\n\nDownload only specific files:\n\n```bash\ndegit user/repo my-project --files README.md,src/index.ts\n```\n\nUse a specific tag, branch, or commit:\n\n```bash\ndegit user/repo#v1.0.0\n```\n\nFor the full CLI reference, ESM API, and `degit.json` actions, see [docs/USAGE.md](docs/USAGE.md).\n\n## Why not just `git clone --depth 1`?\n\n- No leftover `.git` folder from the template.\n- Caches tar archives for offline reuse.\n- Less to type (`degit user/repo` versus `git clone --depth 1 ...`).\n- Composable post-clone actions via `degit.json`.\n- Built-in support for subdirectories, file filtering, and aliases.\n\n## Agent skill\n\nInstall the reusable `degit` skill for agents that support `SKILL.md` files:\n\n```bash\n# project-level install\nnpx skills add Rich-Harris/degit --skill degit\n\n# global install\nnpx skills add Rich-Harris/degit --skill degit -g\n```\n\nThen ask the agent to download a repository or template. The skill helps it choose a source, ref, and destination; handle private repositories and aliases; and avoid overwriting a non-empty destination without confirmation.\n\nSee [skills/degit/SKILL.md](skills/degit/SKILL.md) for the full skill instructions.\n\n## Documentation\n\n- [docs/USAGE.md](docs/USAGE.md) — full CLI reference, ESM API, and `degit.json` actions\n- [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) — contributing, development setup, and CI checks\n- [docs/SECURITY.md](docs/SECURITY.md) — security policy and reporting process\n- [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) — repository architecture and data flow\n- [docs/CODE_OF_CONDUCT.md](docs/CODE_OF_CONDUCT.md) — community expectations\n- [docs/CHANGELOG.md](docs/CHANGELOG.md) — release notes\n\n## See also\n\n- [zel](https://github.com/vutran/zel) by [Vu Tran](https://twitter.com/tranvu)\n- [gittar](https://github.com/lukeed/gittar) by [Luke Edwards](https://twitter.com/lukeed05)\n- [gitpick](https://github.com/nrjdalal/gitpick) - by [Neeraj Dalal](https://twitter.com/nrjdalal_com)\n\n## License\n\n[MIT](LICENSE.md)\n","publish_time":1792576218348,"_cnpm_publish_time":1792576218348,"dist-tags":{"latest":"3.10.1","v2-legacy":"2.8.6"}}