1.1.0 • Published 3 years ago

@qiwi/repocrawler-github v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@qiwi/repocrawler-github

GitHub crawler

Installation

yarn add @qiwi/repocrawler-github
npm i @qiwi/repocrawler-github

Usage

import { createGithubCrawler } from '@qiwi/repocrawler-github'

const crawler = createGithubCrawler(
  {
    baseUrl: 'foo',
    auth: 'token'
  },
  {
    ratelimit: {
      period: 1000,
      count: 4
    }
  }
)

crawler.fetchRepoInfo({ out: 'path/to/save/data', paths: ['src/main/ts/index.ts'], orgs: ['organization1', 'organization2'] })
  .then(() => console.log('Done.'))

API

See here