crypto-idle-miner.js

2.1.0 • Public • Published

Crypto Idle Miner.js

axios

GitHub stars npm

crypto-idle-miner.js is a Node.js module that allows you to easily interact with the Hora Games API.

• Promise based

• Performant

• 100% coverage of the Hora Games API

• Only available library at this time

Installation

• Download NPM and NodeJS

With GitHub :

• Download the project or clone it

• Go to the crypto-idle-miner.js folder and do npm install

• Require the index.js

With NPM :

• Download the project

• Do npm install crypto-idle-miner.js

• Require the library

Documentation

See the API documentation for list of methods and properties.

Example usage

How to get your token

const { Client } = require("crypto-idle-miner.js")

const client = new Client()

client.authenticate()

This will runs a tiny tool in your console to help you get your account token.

Using the library

const { Client } = require("crypto-idle-miner.js")

const client = new Client("token")

client.user().then(data => {
    console.log(data)
})

//OR

const myFunc = async () => {
    const data = await client.user()
    console.log(data)
}

myFunc()

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

Credits

Hora Games API

Copyright

See the license

Readme

Keywords

none

Package Sidebar

Install

npm i crypto-idle-miner.js

Weekly Downloads

4

Version

2.1.0

License

MIT

Unpacked Size

24.1 kB

Total Files

9

Last publish

Collaborators

  • lockblock-dev