Utility to call the codewars' public api from nodejs.
Not affiliated with codewars.
Using npm:
npm i codewars-node-api
Note: add --save
if you are using npm < 5.0.0
const { CodewarsV1Api } = require('codewars-node-api');
const cwApi = new CodewarsV1Api();
const userId = 'bradtaniguchi';
cwApi.getUser(userId).then((user) => {
console.log(user.name); // Brad
});
import { CodewarsV1Api } from 'codewars-node-api';
const cwApi = new CodewarsV1Api();
const userId = 'bradtaniguchi';
cwApi.getUser(userId).then((user) => {
console.log(user.name); // Brad
});
All code documentation is available here: https://bradtaniguchi.dev/codewars-node-api/
This package comes with a CLI interface that can be used to interact with the API directly from your terminal. This could be useful as a quick reference, or working with other command-line tools.
codewars-node-cli help
codewars-node-cli user get bradtaniguchi
codewars-node-cli challenges authored bradtaniguchi
codewars-node-cli challenges completed bradtaniguchi
See CONTRIBUTING and review the CODE_OF_CONDUCT.
See LICENSE
Generated using TypeDoc