0.1.1 • Published 5 years ago
lunanodejs-api v0.1.1
lunanodejs-api
Nodejs library to access the Luna Node Dynamic API
Getting Started
Install it via npm:
npm install lunanodejs-api
And include in your project:
import { LunanodejsApi } from 'lunanodejs-api';
const lndApi = new LunanodejsApi('api_id', 'api_key');
const vm = await lndApi.request('vm', 'create', { plan_id: 'm.1s', hostname: 'my_new_vm', image_id: 240308, scripts: '1234', region: 'roubaix' });
const images = await lndApi.request('image', 'list');
License
MIT