0.2.1 • Published 2 years ago

heroesprofile-api v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

heroesprofile-api

A simple node.js wrapper for the Heroes Profile API.

Website URL: https://api.heroesprofile.com/

Getting Started

You will need to register for a plan at Heroes Profile API to get a token.

Install

Install the heroesprofile-api package from the NPM repository.

npm install heroesprofile-api --save

Usage

const HP = require('heroesprofile-api');
const api = new HP('token', 'json');

api.getHeroes({hero: 'Abathur'}).then((data) => {
    console.log(data);
});

The response format is either json or csv and defaults to json if not specified. You can override this globally or per method.

Note: Not all methods support csv.

Some of the input gets validated against a list of Heroes Profile constants.

0.2.1

2 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago