{"name":"degit","version":"2.8.6","keywords":["git","scaffolding","template"],"author":{"name":"Rich Harris"},"license":"MIT","_id":"degit@2.8.6","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":"7d56e4a847528edf6580c20dad076156814ddc66","tarball":"http://registry-npm.ywwl.com/degit/download/degit-2.8.6.tgz","fileCount":11,"integrity":"sha512-UzjEf67itNZtQF4ZFSNYT+JY78VKtkRJPnksn1tVDAX74Ar0zMqnB5UvsiAjIOBiIHv3BbAPCEJDn/zasbV5rw==","signatures":[{"sig":"MEYCIQD/VzYfnvlFeRNYpUomSCy+MaEdyneBymEBYNW78LpkrAIhAON9oagbXPUk/56sfetYwTSSnsf/T0bFUygVQ4gbI2Is","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1832328,"size":369267,"noattachment":false,"key":"/degit/-/degit-2.8.6.tgz"},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"engines":{"node":">=8.0.0"},"gitHead":"a27ef7e8dfb860381136d19a710ccff31de3e1eb","scripts":{"dev":"npm run build -- --watch","lint":"oxlint --import-plugin --fix .","test":"vitest run","build":"rimraf dist && rollup -c","format":"oxfmt --write .","knip:ci":"knip","lint:ci":"oxlint --import-plugin --deny-warnings .","pretest":"npm run build","format:ci":"oxfmt --check .","test:live":"LIVE_TESTS=1 vitest run test/live.test.js","duplicates:ci":"jscpd --gitignore --reporters console --threshold 5 rollup.config.js vitest.config.js src test","test:coverage":"vitest run --coverage","prepublishOnly":"npm test"},"_npmUser":{"name":"yoglib","email":"yogiboaron@gmail.com","approver":{"name":"yoglib","email":"yogiboaron@gmail.com"}},"repository":{"url":"git+https://github.com/Rich-Harris/degit.git","type":"git"},"_npmVersion":"11.16.0","description":"Straightforward project scaffolding","directories":{},"lint-staged":{"**/*":["oxfmt --write --no-error-on-unmatched-pattern","git add"],"*.{js}":["oxlint --import-plugin --fix --deny-warnings","git add"]},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"packageManager":"bun@1.3.14","readmeFilename":"README.md","devDependencies":{"mri":"1.1.6","tar":"6.1.0","knip":"6.11.0","chalk":"4.1.0","husky":"6.0.0","jscpd":"^4.0.9","oxfmt":"0.47.0","oxlint":"1.62.0","rimraf":"3.0.2","rollup":"2.44.0","sander":"0.6.0","vitest":"4.1.5","enquirer":"2.3.6","tiny-glob":"0.2.8","fuzzysearch":"1.0.3","home-or-tmp":"3.0.0","lint-staged":"10.5.4","https-proxy-agent":"5.0.0","source-map-support":"0.5.19","@vitest/coverage-v8":"4.1.5","eslint-plugin-security":"4.0.0","@rollup/plugin-commonjs":"18.0.0","@rollup/plugin-node-resolve":"11.2.1"},"_npmOperationalInternal":{"tmp":"tmp/degit_2.8.6_1780771270735_0.001294697367494102","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":1780771270834,"_cnpm_publish_time":1780771270834,"dist-tags":{"latest":"3.10.1","v2-legacy":"2.8.6"}}