12.4.0 • Published 4 years ago

balena-pine v12.4.0

Weekly downloads
1,486
License
Apache-2.0
Repository
github
Last release
4 years ago

balena-pine

npm version dependencies Circle Build Status Appveyor Build status

Join our online chat at Gitter chat

Balena PineJS client.

Role

The intention of this module is to provide a ready to use subclass of pinejs-client-js which uses balena-request.

THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY.

Unless you know what you're doing, use the balena SDK instead.

Installation

Install balena-pine by running:

$ npm install --save balena-pine

Documentation

Instantiate the PineJS like that:

var pine = require('balena-pine')({
  apiUrl: "https://api.balena-cloud.com/",
  apiVersion: "v2",
  request: request, // An instantiated balena-request instance
  auth: auth // An instantiated balena-auth instance
})

Where the factory method accepts the following options:

  • apiUrl, string, required, is the balena API url like https://api.balena-cloud.com/,
  • apiVersion, string, required, is the version of the API to talk to, like v2. The current stable version is v2,
  • apiKey, string, optional, is the API key to make the requests with,
  • request, object, an instantiated balena-request instance.
  • auth, object, an instantiated balena-auth instance.

Head over to pinejs-client-js for the returned PineJS instance documentation.

Support

If you're having any problem, please raise an issue on GitHub and the balena team will be happy to help.

Tests

Run the test suite by doing:

$ npm test

Contribute

Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:

$ npm run lint

License

The project is licensed under the Apache 2.0 license.

12.4.0

4 years ago

12.3.0

4 years ago

12.2.0

4 years ago

12.1.1

4 years ago

12.1.0

4 years ago

12.0.1

4 years ago

12.0.0

4 years ago

11.2.1

4 years ago

11.2.0

4 years ago

11.1.0

4 years ago

11.0.2

4 years ago

11.0.1

4 years ago

11.0.0

4 years ago

10.1.2

4 years ago

10.1.3

4 years ago

10.1.1

4 years ago

10.1.0

5 years ago

10.0.1

5 years ago

10.0.0

5 years ago

9.0.0

6 years ago