1.0.1 • Published 2 years ago

superhero.js v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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.

1.0.1

2 years ago

1.0.0

2 years ago