create-from-gh

Init a project from existing github.com repositories

Usage no npm install needed!

<script type="module">
  import createFromGh from 'https://cdn.skypack.dev/create-from-gh';
</script>

README

npm init from-gh

Initialize a project from existing github.com repositories using npm init from-gh <owner>/<repo>

Usage

npm init from-gh <<from>> <<to>>?

If <<to>> is not provided, it will default to <<repo>>.

Options for <<from>> corresponding to https://github.com/<owner>/<repo>:

  • <owner>/<repo>
  • <owner>/<repo>#<branch>
  • <owner>/<repo>/<path>
  • <owner>/<repo>/<path>#<branch>

Using npx create-from-gh instead:


npx create-from-gh <<from>> <<to>>?

License

MIT

Forked from ekaragodin/create-from under MIT license on November 27th 2019 to remove yarn assumptions and expand on pattern.