{"name":"degit","version":"2.5.0","engines":{"node":">=8.0.0"},"description":"Straightforward project scaffolding","main":"index.js","bin":{"degit":"bin.js"},"scripts":{"lint":"eslint .","dev":"npm run build -- --watch","build":"rollup -c","test":"mocha","pretest":"npm run build","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/Rich-Harris/degit.git"},"keywords":["scaffolding","template","git"],"author":{"name":"Rich Harris"},"license":"MIT","bugs":{"url":"https://github.com/Rich-Harris/degit/issues"},"homepage":"https://github.com/Rich-Harris/degit#readme","dependencies":{"chalk":"3.0.0","home-or-tmp":"3.0.0","https-proxy-agent":"4.0.0","mri":"1.1.4","sander":"0.6.0","tar":"6.0.1"},"devDependencies":{"eslint":"6.8.0","eslint-config-prettier":"6.10.0","eslint-plugin-import":"2.20.1","glob":"7.1.6","husky":"4.2.1","lint-staged":"10.0.7","mocha":"7.0.1","prettier":"1.19.1","rimraf":"3.0.1","rollup":"1.31.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-typescript":"1.0.1","source-map-support":"0.5.16","typescript":"3.7.5"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js}":["eslint --fix","git add"],"*.{js, json, yml, md}":["prettier --write","git add"]},"gitHead":"eb9a6d7a8de5a0b29247b2f161fa9965da5e95ab","_id":"degit@2.5.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-xK2C3N8Q4ufi+U+K10M1ieqo8NGaZymAxeKaKs2IWJfPwApwvh80ztaJjDde0dQ6GFbsoG6KSfR6rMcQw3HKsw==","shasum":"2e0603f77b9c76034aac278ac4af8600bd0ab8fa","tarball":"http://registry-npm.ywwl.com/degit/download/degit-2.5.0.tgz","fileCount":7,"unpackedSize":24556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOdSUCRA9TVsSAnZWagAAP/gQAKTStaEvyKL4Qpif9Zy0\n2ZNoY+eFyIR9W07qSJsY48pcwufumsafBamG9aYNaJ+i04EzPP5a1e+kHy6g\nPafeuiaNXaV2lTHqi0aeooqnvEg5srFMPe3tJ45OvTQFq4+vqafRCiRspz8x\nG/T5unXIWt5gRW5P79O5V9HnRerSwoNQcvfOhBgx7Ht+dmTfdiySjLgpklwc\nSy7Rxp1BBhTKA6EOKHywixYcuzHLMuK6AX22VGqucvfS5cxxWvpP1LH3JVlm\n5lDdmVWEXUPvCtS1NC23hed3m+fB7l9SrFhAIgHiXCuyeJ9k1og4vO3ZyLoj\nNKhjbv54z8wqcU4pBTTvkmSneHXccI7NRIx8HnBAJjDJSSQf9Y+bpCGQjv+U\nuSA8GaZ2SIBudZeJCa+Ky7yv5HIlt2zoCP4FH+2SqtvUNhvgKu+L85KeMfcy\nV6nByRKrY2P7oQGRvB0XVVbYRtE59R0dhR9O/bT/DVZlu0uomEOeB0UZPvYh\nncK0XDU55L0STmBFQZ4MPr/4E4ElypM0AEM1cjCtWDcKqx2EwH0dn7EvS7T+\nVaTPVUpttyCW7u5U3ljUT4rEagsoex3xB81NgD+s/50ulKOl80fHKIxs6pTw\n4bC9KzS3uJUi6mdqne6Iegdfdq3qHqUpTX+VOsovkuEPFTsGV/Zw/fESiEi5\nr+7H\r\n=UwZ6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6PYI3u18m3mFsNrMC68pkhvBpfx4c47Nd8dNmoeJw0AiEAqts4k6TqAGusfw6JCoWq7XpiIHNf5YNlHz2atwzEBCY="}],"size":8955,"noattachment":false,"key":"/degit/-/degit-2.5.0.tgz"},"maintainers":[{"email":"richard.a.harris@gmail.com","name":"rich_harris"},{"email":"yogiboaron@gmail.com","name":"yoglib"}],"_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degit_2.5.0_1580848276087_0.8903185930449751"},"_hasShrinkwrap":false,"readme":"# degit — straightforward project scaffolding\n\n[![Travis CI build status](https://badgen.net/travis/Rich-Harris/degit/master)](https://travis-ci.org/Rich-Harris/degit)\n[![AppVeyor build status](https://badgen.net/appveyor/ci/Rich-Harris/degit/master)](https://ci.appveyor.com/project/Rich-Harris/degit/branch/master)\n[![Known Vulnerabilities](https://snyk.io/test/npm/degit/badge.svg)](https://snyk.io/test/npm/degit)\n[![install size](https://badgen.net/packagephobia/install/degit)](https://packagephobia.now.sh/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-v1.4%20adopted-ff69b4.svg)](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 will find the latest commit on https://github.com/some-user/some-repo and download the associated tar file to `~/.degit/some-user/some-repo/commithash.tar.gz` 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_Requires Node 8 or above, because `async` and `await` are the cat's pyjamas_\n\n## Installation\n\n```bash\nnpm install -g degit\n```\n\n## Usage\n\n### Basics\n\nThe simplest use of degit is to download the master branch of a repo from GitHub to the current working directory:\n\n```bash\ndegit user/repo\n\n# these commands are equivalent\ndegit github:user/repo\ndegit git@github.com:user/repo\ndegit https://github.com/user/repo\n```\n\nOr you can download from GitLab and BitBucket:\n\n```bash\n# download from GitLab\ndegit gitlab:user/repo\ndegit git@gitlab.com:user/repo\ndegit https://gitlab.com/user/repo\n\n# download from BitBucket\ndegit bitbucket:user/repo\ndegit git@bitbucket.org:user/repo\ndegit https://bitbucket.org/user/repo\n\n# download from Sourcehut\ndegit git.sr.ht/user/repo\ndegit git@git.sr.ht:user/repo\ndegit https://git.sr.ht/user/repo\n```\n\n### Specify a tag, branch or commit\n\nThe default branch is `master`.\n\n```bash\ndegit user/repo#dev       # branch\ndegit user/repo#v1.2.3    # release tag\ndegit user/repo#1234abcd  # commit hash\n````\n\n### Create a new folder for the project\n\nIf the second argument is omitted, the repo will be cloned to the current directory.\n\n```bash\ndegit user/repo my-new-project\n```\n\n### Specify a subdirectory\n\nTo clone a specific subdirectory instead of the entire repo, just add it to the argument:\n\n```bash\ndegit user/repo/subdirectory\n```\n\n### HTTPS proxying\n\nIf you have an `https_proxy` environment variable, Degit will use it.\n\n### Private repositories\n\nPrivate repos can be cloned by specifying `--mode=git` (the default is `tar`). In this mode, Degit will use `git` under the hood. It's much slower than fetching a tarball, which is why it's not the default.\n\nNote: this clones over SSH, not HTTPS.\n\n### See all options\n\n```bash\ndegit --help\n```\n\n## Not supported\n\n- Private repositories\n\nPull requests are very welcome!\n\n## Wait, isn't this just `git clone --depth 1`?\n\nA few salient differences:\n\n- If you `git clone`, you get a `.git` folder that pertains to the project template, rather than your project. You can easily forget to re-init the repository, and end up confusing yourself\n- Caching and offline support (if you already have a `.tar.gz` file for a specific commit, you don't need to fetch it again).\n- Less to type (`degit user/repo` instead of `git clone --depth 1 git@github.com:user/repo`)\n- Composability via [actions](#actions)\n- Future capabilities — [interactive mode](https://github.com/Rich-Harris/degit/issues/4), [friendly onboarding and postinstall scripts](https://github.com/Rich-Harris/degit/issues/6)\n\n## JavaScript API\n\nYou can also use degit inside a Node script:\n\n```js\nconst degit = require('degit');\n\nconst emitter = degit('user/repo', {\n\tcache: true,\n\tforce: true,\n\tverbose: true,\n});\n\nemitter.on('info', info => {\n\tconsole.log(info.message);\n});\n\nemitter.clone('path/to/dest').then(() => {\n\tconsole.log('done');\n});\n```\n\n## Actions\n\nYou can manipulate repositories after they have been cloned with _actions_, specified in a `degit.json` file that lives at the top level of the working directory. Currently, there are two actions — `clone` and `remove`. Additional actions may be added in future.\n\n### clone\n\n```json\n// degit.json\n[\n\t{\n\t\t\"action\": \"clone\",\n\t\t\"src\": \"user/another-repo\"\n\t}\n]\n```\n\nThis will clone `user/another-repo`, preserving the contents of the existing working directory. This allows you to, say, add a new README.md or starter file to a repo that you do not control. The cloned repo can contain its own `degit.json` actions.\n\n### remove\n\n```json\n// degit.json\n[\n\t{\n\t\t\"action\": \"remove\",\n\t\t\"files\": [\"LICENSE\"]\n\t}\n]\n```\n\nRemove a file at the specified path.\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\n## License\n\n[MIT](LICENSE.md).\n","publish_time":1580848276264,"_cnpm_publish_time":1580848276264,"dist-tags":{"latest":"3.10.1","v2-legacy":"2.8.6"}}