Socket
Socket
Sign inDemoInstall

@colophon/github-client

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colophon/github-client

@colophon/github-client


Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
3
Weekly downloads
 
Created
Source

@colophon/github-client version License Build Status Downloads

Discover and parse Colophon files in your GitHub repositories.

Install

npm install --save @colophon/github-client

Usage

Use the exposed methods to:

  1. Authenticate your client using getAuthedClient (see options here).
  2. Create a new authorization and retrieve the personal access token using getAuthToken. This token can be stored and then used to simplify consequent requests.
  3. Parse all the repositories in your personal or organization's account and retrieve all info found inside Colophon files using getColophonData. If not passing any options, the user's personal repositories will be parsed with the default options (perPage - 100, concurrency - 10).
const { getAuthedClient, getAuthToken, getColophonData } = require('./index.js')

const authedClient = getAuthedClient({ type: 'basic', username: 'username', password: 'password' })

const token = await getAuthToken(authedClient) // not using 2FA OR
const token = await getAuthToken(authedClient, otpCode) // if 2FA is on and using a CLI to get the OTP code from the user

const colophonData = await getColophonData(authedClient, { org: 'acme', perPage: 100, concurrency: 5 })

See more details about Colophon schema here.


License: ISC • Copyright: Colophon Project

Keywords

FAQs

Package last updated on 17 Oct 2018

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