You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

gh-gql

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
g

gh-gql

GitHub GraphQL API helper for TypeScript

5.0.1
latest
76

Supply Chain Security

100

Vulnerability

78

Quality

77

Maintenance

100

License

Version published
Maintainers
1
Created
Issues
1

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`);
});

FAQs

Package last updated on 14 Feb 2024

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