{"name":"degit","version":"2.1.3","engines":{"node":">=8.0.0"},"description":"Straightforward project scaffolding","main":"index.js","bin":{"degit":"bin.js"},"scripts":{"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":"^2.0.1","home-or-tmp":"^3.0.0","mri":"^1.1.0","sander":"^0.6.0","tar":"^4.0.2"},"devDependencies":{"eslint":"^4.3.0","eslint-plugin-import":"^2.7.0","glob":"^7.1.2","mocha":"^4.0.1","rimraf":"^2.6.1","rollup":"^0.51.5","rollup-plugin-commonjs":"^8.2.0","rollup-plugin-typescript":"^0.8.1","source-map-support":"^0.5.0","typescript":"^2.5.2"},"files":["index.js","bin.js","help.md"],"gitHead":"8d885a96c0277d9b82f9a8a8a837365b03908146","_id":"degit@2.1.3","_npmVersion":"5.7.1","_nodeVersion":"9.1.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"integrity":"sha512-/An4FFyxq7yody1DMeFeftv+YmyZ7ESYEwtGtkbe3ovZpoEhIV2gy7+2z7dc8UqqC0b1AHJwfWj2nPnDhiTtuQ==","shasum":"b53c30ad18d9e30b9fd542fe81d5154e63d6261f","tarball":"http://registry-npm.ywwl.com/degit/download/degit-2.1.3.tgz","fileCount":7,"unpackedSize":19180,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgGxuvXlwHTabcNgidFMM4sdJVRm4SsdM0u+LkRgCUjAiEA1xtL7J3kYSj2CGTZDnbMBxW0Mb0pTvzQQtD9W2DqiuA="}],"size":7273,"noattachment":false,"key":"/degit/-/degit-2.1.3.tgz"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degit_2.1.3_1521080473247_0.6205018049849411"},"_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":1521080473329,"_cnpm_publish_time":1521080473329,"dist-tags":{"latest":"3.10.1","v2-legacy":"2.8.6"}}