solusvm-client.js

1.0.0 • Public • Published

SolusVM-client.js

axios axios

GitHub stars npm

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

With GitHub:

  • Download or clone the project.
  • Go to the solusvm-client.js folder and run npm 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

SolusVM

Copyright

See the license

Readme

Keywords

Package Sidebar

Install

npm i solusvm-client.js

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

15.9 kB

Total Files

10

Last publish

Collaborators

  • lockblock-dev