🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

github-repositories

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-repositories

Get all Github repos from a user

Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
166
40.68%
Maintainers
2
Weekly downloads
 
Created
Source

github-repositories Build Status

Get all Github repos from a user

Install

$ npm install --save github-repositories

Usage

var githubRepos = require('github-repositories');

githubRepos('kevva', function (err, data) {
	if (err) {
		throw err;
	}

	console.log(data);
	//=> [{id: 29258368, name: 'animal-sounds', full_name: 'kevva/animal-sounds', ...}, ...]
});

API

githubRepos(user, [opts], cb)

user

Type: string

Username to fetch repos from.

opts.token

Type: string

Token to authenticate with. Use this to increase the request count. Github supports up to 60 unauthenticated request per hour. This is also required for accessing private repos.

If you don't have a token you can generate a new one here.

cb(err, data)

Type: function

data contains an array with all Github repos.

CLI

$ npm install --global github-repositories
$ github-repositories --help

Usage
  $ github-repositories kevva
  $ github-repositories kevva --token 523ef69119eadg12

Options
  -t, --token    Github token to authenticate with

License

MIT © Kevin Mårtensson

Keywords

api

FAQs

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