New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github-downloader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-downloader

Downloads and extracts a github repository

  • 0.0.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Github Download

Downloads a github repository, and then extracts it.

Usage

npm install github-download --save

First you need to set the user agent. Github requires your requests to their api to have a user agent. Read more here;

githubDownload.setUserAgent('userAgent');

Download Repository

githubDownload(githubUser, githubRepo, outputPath, callback);

githubUser String. Username of owner of repository

githubRepo String. Name of repository to download.

outputPath String. Path to extract the repository to. We do not create a containing folder.

callback Function. Called after the repository is downloaded and extracted.

FAQs

Package last updated on 26 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc