superhero.js - superheroapi.com API Wrapper
Coming Soon..
npm install superhero.js
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.