0.1.4 • Published 4 years ago
code-wars-api-wrapper v0.1.4
code-wars-api-wrapper
Install
npm i code-wars-api-wrapper
Get started
const client = new CodeWarsClient();
// Get user information (replace username placeholder with actual username)
const user: User | null = await client.getUser('username');
// Get completed challenges of a user
const completedChallenges: CompletedChallengeResponse | null = await client.getCompletedChallenges('username', 1);
// List challenges authored by the user.
const authoredChallenges: AuthoredChallenge[] | null = await client.getAuthoredChallenges('username');
// Get information about a code challenge
const codeChallenge: CodeChallengeInformation | null = await client.getCodeChallenge('id or slug');