honeygain.js

1.3.0 • Public • Published

HoneyGain.js

axios

GitHub stars npm

honeygain.js is a Node.js module that allows you to easily interact with the EarnApp API.

  • Promise-based
  • Performant
  • 100% coverage of the HoneyGain API

Installation

With GitHub:

  • Download or clone the project.
  • Go to the honeygain.js folder and run npm install.
  • Require client.js.

With npm:

  • Run npm install honeygain.js.
  • Require the library.

Documentation

Example usage

The library can be used in both CommonJS and ES Modules

Using the library

The library is async, be sure to use async functions or .then()

const { Client } = require("honeygain.js");
//OR
import { Client } from "honeygain.js";

const client = new Client();

client.login("eyJ0eXAi...xaL5x4");

client.stats().then((data) => {
    console.log(data);
});
//OR
const getStats = async () => {
    const data = await client.stats();
    console.log(data);
};

getStats();

Credits

HoneyGain

Copyright

See the license

Readme

Keywords

Package Sidebar

Install

npm i honeygain.js

Weekly Downloads

36

Version

1.3.0

License

MIT

Unpacked Size

29.7 kB

Total Files

11

Last publish

Collaborators

  • lockblock-dev