{"name":"degit","version":"2.4.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":"0f152c99168f2ccf34f7473c9c651c31207de1e8","_id":"degit@2.4.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-HHsmNpT0uN/nPJcECOXnXbh6UL1CFi5EtajihvhX/k0ij9ewUTyqaLcF1mZeEmtXmQY+g2PC7NMtuxU5hX+SSQ==","shasum":"acc3037f20842b48e5ca319d81ee760104d17399","tarball":"http://registry-npm.ywwl.com/degit/download/degit-2.4.0.tgz","fileCount":7,"unpackedSize":23357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOcV6CRA9TVsSAnZWagAAEu4P/2hGIxSoK052HSKqVNLJ\neELCMgk1yHN+b+5OT7Qz6R253Otm4CiTY2nvZFOguLwQHN0y628a5733vK0V\n1ncSwgulYigGmn+o5kr4pOdoBMjRp8w+K65UcnbYvdh9hZsf34D4bi5HeG2C\nsHdt18OZYvU4UC/aib0uSdcA1eV7znKcjPeoB5FgRR2pqAaL9vh3Pe1VLMHi\nY8nDU9AfCqgRaIQNKCnBHiH9ComU1BWIWl2fcH7j1yPegiSIBs5FBKIp25Fc\nDtcP9/S6R5KpTkiK4tf0TnV2CjN1epYgdrhjQjnH704Sz9D5LGwtvaJ9n8rL\nlfcZ9Ymb9h3MspXm9UPd9oH7v/UdOCFM56edN7KjYDv7IONyrT1Wp8yI1A0u\nQonF4zVhiLGhLPofQUtOwnWV33G74WhLn8hvqRsad4PcRn1vsa57TDCgh02I\n2WXgkIhUv7XayZvEIkdJjf2LtvgGUpYuRFFgU+T30a2jhf+8FAuPnGl2MzRx\nFtPxLda+dqWLAeNEbKzOjohjwc/rA8m1AOQ1sdjX0+v28cYxlbJwylE1G74H\nTFL7R2sDCbhEyOstEzT2zDyTtIkSNAiIRIALgJdrWyX2tNy8NPLIuuykzaob\nvBuZTlQaIN5hi8E9aB17lEE9qeSSymXiEaVDlSdq8+yp/2C1bJNWCdnK3GG3\negWX\r\n=/8lI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICkckxEIufmDzRMHPwGA3HtX1KiNZh0ncTc91hE19VbTAiAK+Mv+ZsNf5dHwmyEno0K48HxRweJGTzZ4pkTIXhI3/g=="}],"size":8535,"noattachment":false,"key":"/degit/-/degit-2.4.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.4.0_1580844409779_0.23529373552202593"},"_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":1580844409894,"_cnpm_publish_time":1580844409894,"dist-tags":{"latest":"3.10.1","v2-legacy":"2.8.6"}}