0.1.1 • Published 5 years ago

lunanodejs-api v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

lunanodejs-api

Build Status Coverage Downloads Downloads npm version dependencies dev dependencies License

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

0.1.1

5 years ago

0.1.0

5 years ago