📦 Clone GitHub repos fast and easy.
npm install gitget---
``bashGitHub Repository
`bash
NPM Package
download npm package
$ npx gitget npm:packageNamedownload npm package to /folder
$ npx gitget npm:packageName folderuse the flag -i to only download information about the package
$ npx gitget npm:packageName -i
`$3
`ts
interface GitGetOption {
user?: string
repo?: string
folder?: string
subdir?: string
/* specify a tag, branch or commit /
branch?: string
test?: boolean
/* silences steps (errors are still displayed) /
silent?: boolean
/* npm package name /
npm?: string
/* download only information instead /
info?: boolean
}
``js
// index.cjs
const { gitget } = require('gitget')gitget({ GitGetOptions })
``js
// index.mjs
import { gitget } from 'gitget/lib/gitget.js'gitget({ GitGetOptions })
``js
// index.ts
import { gitget } from 'gitget'gitget({ GitGetOptions })
`Try it now!
Download Day.js for example.
`bash
download the repository
$ npx gitget iamkun/dayjsdownload information about the repository
$ npx gitget iamkun/dayjs -i
`_Use
npx gitget@latest ...` if something is not working._