Needlessly Postulating Minds
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

jslxd

1.0.5 • Public • Published

LXD API javascript wrapper

Build Status npm npm npm

JavaScript library for the LXD API. For use in Node or the browser.

Goals

This library was built with a few goals in mind:

  • Be able to use in a Node or Browser environment with no difference in usage.
  • Use Promises instead of callbacks so clients can make use of async/await.
  • Be built in TypeScript so consumers of the library can benefit from excellent intellisense with the TypeScript definitions.
  • Provide solid documentation including examples for usage.

Usage

To use the library, install from the npm repository.

$ npm install --save jslxd
# Alternatively install with yarn 
$ yarn add lslxd

Simply import the client and initialize it with your API token:

import { Client } from 'jslxd';
 
const client = new Client('my-api-token');

To see all the services available, check out the documentation.

Install

npm i jslxd

DownloadsWeekly Downloads

4

Version

1.0.5

License

MIT

Unpacked Size

26.1 kB

Total Files

39

Last publish

Collaborators

  • avatar