JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q70345F
  • License MIT

Package Exports

  • s9s-cloudlink-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (s9s-cloudlink-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CloudLink API

Build Status Docs coverage

An API to make requests to CloudLink service.

Installation

npm install --save s9s-cloudlink-api

Examples

const CloudlinkApi = require('s9s-cloudlink-api');
const api = new CloudlinkApi({
    cloud: 'aws',
    server: {
        host: '127.0.0.1',
        port: 3000
    },
    auth: {
        accessKeyId: '...',
        secretAccessKey: '...',
        region: 'eu-central-1'
    }
});

api
    .listInstances()
    .then((instances) => {
        console.log('resolve', instances);
    })
    .catch((error) => {
        console.log('reject', error);
    });