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
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
See the API documentation.
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()
See the license