superhero.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i superhero.js

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

15.6 kB

Total Files

14

Last publish

Collaborators

  • cimok