solusvm-client.js
v1.0.0
Published
A JavaScript library for interacting with the solusVM client API
Downloads
61
Readme
SolusVM-client.js
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
Installation
- Install NodeJS.
With GitHub:
- Download or clone the project.
- Go to the
solusvm-client.js
folder and runnpm install
. - Require
client.js
.
With npm:
- Run
npm install solusvm-client.js
. - Require the library.
Documentation
Example usage
The library can be used in both CommonJS and ES Modules
Using the library
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();
Credits
Copyright
See the license