1.0.0 • Published 8 years ago

download-github-package v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

download-github-package

Download a node module from github.

Installation

npm [-g] install download-github-package

Features

  • Library to download packages
  • CLI to download packages

Usage

node

downloadGithubPackage takes an package arg & a path as arguments and returns a promise, a promise that resolves once the package has been downloaded to the folder set in path.

import downloadGithubPackage from 'download-github-package';

downloadGithubPackage({
  arg: 'user/repo#branch' // or github.com/user/repo or something simlar
  path: '/tmp' // package will be downlodaded to ${path}/packageName as defiend in the package.json in the github repo
}).then()

cli

There's also a cli available!

download-github-package $packageArg [$path]