gh-gql
TypeScript icon, indicating that this package has built-in type declarations

5.0.1 • Public • Published

Package logo

Build Status npm Standard Shared Config

GitHub GraphQL API helper for TypeScript

Install

npm install gh-gql

Usage

Make sure the token GITHUB_TOKEN is available as an environment variable.

Query template: query.[QUERY].[QUERY_METHOD]([PARAMETERS]);

import Provider from 'gh-gql';

const { query } = new Provider();

query.commit.getCount({ branch: 'dev', owner: 'keindev', repository: 'gh-gql' }).then(count => {
  process.stdout.write(`${count} awesome commits\n`);
});

Package Sidebar

Install

npm i gh-gql

Weekly Downloads

15

Version

5.0.1

License

MIT

Unpacked Size

24 kB

Total Files

36

Last publish

Collaborators

  • keindev