2miners.js
v1.0.1
Published
A JavaScript library for interacting with the 2miners API
Downloads
10
Readme
2miners.js
2miners.js is a Node.js module that allows you to easily interact with the 2miners API.
• Promise based
• Performant
• 100% coverage of the 2miners API
Installation
With GitHub :
• Download the project or clone it
• Go to the 2miners.js folder and do npm install
• Require the index.js
With NPM :
• Download the project
• Do npm install 2miners.js
• Require the library
Documentation
See the API documentation.
Example usage
Using the library
const { Client } = require("2miners.js")
const client = new Client("pool") //example : ETH or solo-ETH
client.stats().then(data => {
console.log(data)
})
//OR
const myFunc = async () => {
const data = await client.stats()
console.log(data)
}
myFunc()
The library is async, be sure to use async functions or .then()
Credits
Copyright
See the license