{"name":"degit","version":"3.6.0","keywords":["git","scaffolding","template"],"author":{"name":"Rich Harris"},"license":"MIT","_id":"degit@3.6.0","maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"},{"name":"yoglib","email":"yogiboaron@gmail.com"}],"homepage":"https://github.com/Rich-Harris/degit#readme","bugs":{"url":"https://github.com/Rich-Harris/degit/issues"},"bin":{"degit":"degit"},"dist":{"shasum":"e2eff3b73271c49c35d8e137eb448539a9542609","tarball":"http://registry-npm.ywwl.com/degit/download/degit-3.6.0.tgz","fileCount":13,"integrity":"sha512-5s6EaZUqG5oPkSqiIaFmRlj92gitjhhXnzlXx6pbpwqx4vhT7TTyNkoLdkMA7PWnkxMKODYpD2ZzISYOIjtXlg==","signatures":[{"sig":"MEQCIHbyscSjjf+PNIv88RjsqQugWNuHQYVubSPudBCTbKB8AiBSG93U6f4X21wvokA7ornMiRE5CgkeEudhLEJRdzAurg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/degit@3.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":474315,"size":150007,"noattachment":false,"key":"/degit/-/degit-3.6.0.tgz"},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=20.0.0"},"gitHead":"a9001767c6437f08d2bf3634cf0b827b78a39ed3","scripts":{"dev":"tsdown --config tsdown.config.ts --watch","lint":"oxlint --import-plugin --fix .","perf":"bun perf/bench.ts","test":"vitest run --exclude test/integration/private.test.ts","audit":"bun audit","build":"tsdown --config tsdown.config.ts","format":"oxfmt --write .","knip:ci":"knip","lint:ci":"oxlint --import-plugin --deny-warnings .","perf:ci":"bun perf/bench.ts","prepare":"husky","pretest":"bun run build","format:ci":"oxfmt --check .","duplicates:ci":"jscpd --gitignore --reporters console --threshold 5 tsdown.config.ts vitest.config.ts src test","test:coverage":"vitest run --coverage","prepublishOnly":"bun run test","test:integration":"vitest run test/integration","test:integration:release":"bun test/integration/release.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"yoglib","email":"yogiboaron@gmail.com"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:1a490e17-e1cb-49bc-b0a2-347edbcd0285"}},"overrides":{"vite":"8.0.16"},"repository":{"url":"git+https://github.com/Rich-Harris/degit.git","type":"git"},"_npmVersion":"12.0.1","description":"Straightforward project scaffolding","directories":{},"lint-staged":{"**/*":["oxfmt --write --no-error-on-unmatched-pattern","git add"],"*.{js,ts}":["oxlint --import-plugin --fix --deny-warnings","git add"]},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"packageManager":"bun@1.3.14","devDependencies":{"mri":"1.1.6","tar":"^7.5.16","knip":"6.11.0","vite":"8.0.16","husky":"9.1.7","jscpd":"4.0.9","oxfmt":"0.47.0","oxlint":"1.62.0","rimraf":"3.0.2","tsdown":"0.21.10","vitest":"4.1.8","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":"4.1.8","eslint-plugin-security":"4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/degit_3.6.0_1783959721772_0.00988774544546156","host":"s3://npm-registry-packages-npm-production"},"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":1783959721944,"_cnpm_publish_time":1783959721944,"dist-tags":{"latest":"3.10.1","v2-legacy":"2.8.6"}}