zergpool.js is a Node.js module that allows you to easily interact with the Zergpool API.
• Promise based
• Performant
• 100% coverage of the Zergpool API
• Handles server side limit on wallet and walletEx endpoints
With GitHub :
• Download the project or clone it
• Go to the zergpool.js folder and do npm install
• Require the index.js
With NPM :
• Download the project
• Do npm install zergpool.js
• Require the library
See the API documentation.
const { Client } = require("zergpool.js")
const client = new Client()
client.status().then(data => {
console.log(data)
})
//OR
const myFunc = async () => {
const data = await client.status()
console.log(data)
}
myFunc()
The library is async, be sure to use async functions or .then()
See the license