lunanodejs-api

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i lunanodejs-api

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

7.03 kB

Total Files

7

Last publish

Collaborators

  • dolu