Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

codingame-api-node

GrahamSH-LLK24MIT0.0.6TypeScript support: included

A <5kb single dependency Node.js wrapper for the Codingame api

Codingame, Node.js, API Wrapper

readme

codingame-api-node

A simple API wrapper for the undocumented Codingame API

Build and minify

Make sure you have the dev dependencies installed, and run npm run build. Terser should minify the source file and the output should be in dist/index.js.

Use

npm i codingame-api-node

const cg = require('codingame-api-node')
const api = new cg()

Login

await api.login({Email:'email', Password: 'password'})

Create Clash

clash = await api.CreateClash()