const resellerclub = require("resellerclub"); resellerclub .connect({ clientID: " YOUR CLIENT ID", clientSecret: "YOUR CLIENT SECRET" }) .then(res => console.log(res)) .catch(err => console.log(err)); // Check Domain Availability resellerclub .domainSearch({ domainname: "ENTER DOMAIN NAME", tlds: ["com", "net", "in"] }) .then(res => console.log(res)) .catch(err => console.log(err));