1.0.0 • Published 3 years ago
gminer.js v1.0.0
GMiner.js
gminer.js is a Node.js module that allows you to easily interact with the GMiner API.
• Promise based
• Performant
• 100% coverage of the GMiner API
Installation
With GitHub :
• Download the project or clone it
• Go to the gminer.js folder and do npm install
• Require the index.js
With NPM :
• Download the project
• Do npm install gminer.js
• Require the library
Documentation
See the API documentation.
Example usage
Using the library
const { Client } = require("gminer.js")
const client = new Client(port) //example : 5555 (must be a number)
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
1.0.0
3 years ago