Socket
Book a DemoInstallSign in
Socket

open-critic-node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-critic-node

A NodeJS Wrapper for the Open Critic API

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
12
-7.69%
Maintainers
1
Weekly downloads
 
Created
Source

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!

// Instantiate a new client.
const client = new OpenCriticClient();

// Get the first page of PS5 games (game summary only)
const games = await client.getGames({
    page: 0,
    platforms: [
        PlatformType.SONY_PLAYSTATION_5
    ],
});

// Get a game's details by its ID. (This example is the ID for Demon's Souls)
const game = await client.getGameById(10255);

Keywords

open critic api

FAQs

Package last updated on 24 Apr 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.