open-critic-node
A NodeJS Wrapper for the Open Critic API
Installation
npm -i open-critic-node
Usage
First import the client:
Typescript
import { OpenCriticClient } from "open-critic-node";
Javascript CommonJS
const OpenCriticClient = require("open-critic-node").OpenCriticClient;
Method Examples
I'll just be showing examples in Typescript from here on out. The typings are included in the lib so check it out!
const client = new OpenCriticClient();
const games = await client.getGames({
page: 0,
platforms: [
PlatformType.SONY_PLAYSTATION_5
],
});
const game = await client.getGameById(10255);