New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solomid/node-gg

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solomid/node-gg

Node.js Client for champion.gg API

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by100%
Maintainers
4
Weekly downloads
 
Created
Source

Node.js Client for the Champion.GG API

NPM

Build Status via Travis CI

The official Champion.GG API Node.js Client.

installation

npm i @solomid/node-gg

If you really need an ES5 version:

npm i @solomid/node-gg@1.1.0

usage

First, instantiate the wrapper with your api key

const GG = require('node-gg');
const gg = GG.init('YOUR_KEY');

Then you gain access to all current endpoints of the API! All but initialization require a callback function and some also require either role or champion_id, along with an optional object with ...options. These options are passed as query string params and are page, limit, elo, sort and champData. For more details on these parameters, please refer to the Champion.GG API documentation.

The methods are:

MethodParameters
.initapi_key
.statistics.overalloptions, cb
.statistics.generaloptions, cb
.champions.alloptions, callback
.champions.specificchampId, options, callback
.champions.specificRolechampId, role, options, callback
.champions.specificMatchupchamp1Id, champ2Id, role, options, callback

tests

npm test

contributing

Feel free to contribute, let's just try to keep it readable :)

Keywords

FAQs

Package last updated on 09 May 2017

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