solusvm-client.js is a Node.js module that allows you to easily interact with the solusVM client API.
- Promise-based
- Performant
- 100% coverage of the solusVM client API
- Install NodeJS.
- Download or clone the project.
- Go to the
solusvm-client.js
folder and runnpm install
. - Require
client.js
.
- Run
npm install solusvm-client.js
. - Require the library.
The library can be used in both CommonJS and ES Modules
The library is async, be sure to use async functions or .then()
const { Client } = require("solusvm-client.js");
//OR
import { Client } from "solusvm-client.js";
const client = new Client("https://solusvm_domain", "API_KEY", "API_HASH_ID");
client.status().then((data) => {
console.log(data);
});
//OR
const getStatus = async () => {
const data = await client.status();
console.log(data);
};
getStatus();
See the license