cimok2000 / superhero.js

superheroapi.com API Wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

superhero.js - superheroapi.com API Wrapper

Install

Coming Soon..

npm install superhero.js

Usage

To use superhero.js you will need to generate an API key on the Superheroapi.com Site and replace your_api_key with it:

// Javascript
const SUPERHERO = require("superhero.js");
// Typescript
import SUPERHERO from "superhero.js";
const Superhero = new SUPERHERO(`your-api-key`);

You will now be able to test if your API key is correct by using the following function:

console.log(await Superhero.validate());

If you get a response of true your API key is valid. If you get a response of false your API key is invalid.

About

superheroapi.com API Wrapper


Languages

Language:TypeScript 100.0%