Need private packages and team management tools?Check out npm Teams »

hexa.one

1.0.1 • Public • Published

HEXA.ONE

About

A simple NodeJS module to interact with HEXA.ONE endpoints.

Installation

To install hexa.one, simply run the following command:

$ npm i hexa.one

Usage

In order to use all available endpoints by HEXA.ONE you will need an API_KEY. Check our Discord channel to learn how to get one.

Example

const hexaone = require('./index.js');
const api = new hexaone('API_KEY');

setImmediate(async () => {
  const response = await api.getPrices(578080);
  console.log(response.status);
  console.log(Object.keys(response.data).length + ' Items');
});

/* OR */
api.getPrices(578080).then((response) => {
  console.log(response.status);
  console.log(Object.keys(response.data).length + ' Items');
});

As of now you can use api object to interact with HEXA.ONE provided endpoints. For more examples please check examples folder.

More

For more information visit HEXA.ONE

Keywords

none

Install

npm i [email protected]

Version

1.0.1

License

MIT

Unpacked Size

5.01 kB

Total Files

5

Homepage

hexa.one

Last publish

Collaborators

  • avatar