Mapped exactly to Runcloud's REST API
View their official documentation here.
npm install runcloudjs
Be sure to enable the API in your Runcloud dashboard and generate API keys: Manage API Settings
const { Runcloud } = require('runcloudjs');
const client = new Runcloud({
api_key: 'YOUR_RUNCLOUD_API_KEY',
api_secret: 'YOUR_RUNCLOUD_API_SECRET',
});
// async/await
const list = await client.servers.list()
// promises
client.servers.list().then((serverList) => console.log(serverList))
import { Runcloud } from 'runcloudjs';
const client = new Runcloud({
api_key: 'YOUR_RUNCLOUD_API_KEY',
api_secret: 'YOUR_RUNCLOUD_API_SECRET',
});
I hope to release the rest of the methods along with more documention soon. Pull requests are welcome. Enjoy!