https://github.com/kazuma1989/hina
https://github.com/kazuma1989/hina
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kazuma1989/hina
- Owner: kazuma1989
- Created: 2021-04-03T01:22:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-06T12:34:22.000Z (about 4 years ago)
- Last Synced: 2025-01-22T09:33:05.605Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hina - 雛
Simple project scaffolding from GitHub repositories without git command.
Inspired by [degit](https://github.com/Rich-Harris/degit).## Usage
```console
npx hina user/repo
```The command above will download files in https://github.com/user/repo.
Just downloads a tarball (https://github.com/user/repo/archive/HEAD.tar.gz) and then extract to the current directory.
### CLI
```console
npx hina user/repo # copy into the current working directory
npx hina user/repo path/to/dir # specify a directorynpx hina user/repo#dev # branch
npx hina user/repo#v1.2.3 # release tag
npx hina user/repo#1234abcd # commit hashnpx hina user/repo/sub # extract a sub directory
```