Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gh-repo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-repo

A very simple node.js library to get a Github repository information

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Get a Github repository's info

Install

$ npm install --save gh-repo

Usage

var repo = require('gh-repo');

repo({ username: "torvalds", repo: "linux" }, function(data) {
    console.log('ID: ' + data.id); // => 2325298
    console.log('Repo name: ' + data.name); // => linux
    console.log('Description: ' + data.description); // => Linux kernel source tree
    console.log('Owner: ' + data.owner.login); // => torvalds
    console.log('Created at: ' + data.created_at); // => 2011-09-04T22:48:12Z
    console.log('Open issues: ' + data.open_issues_count); // => 86
});

API

repo(username, repo)

username

Required
Type: string

GitHub username.

repo

Required Type: string

GitHub repository.

License

MIT © Gabriel Montalvo

Keywords

FAQs

Package last updated on 29 Nov 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