![Gitter](https://badges.gitter.im/Join Chat.svg)
This module is deprecated. To share a SDK throughout an application, or build a module that uses the SDK, you should depend on the SDK directly, and use resinSdk.setSharedOptions
and resinSdk.fromSharedOptions
:
// In your top-level app code, before modules are loaded:
require('resin-sdk').setSharedOptions({
// Whatever options you'd like, see https://github.com/resin-io/resin-sdk#documentation
});
// In your modules, to get an SDK instance using app-wide settings:
const resin = require('resin-sdk').fromSharedOptions();
The intention of this module is to provide a preconfigured Resin-SDK singleton instance. The configuration used in this module is not changeable, and is set to appropriate defaults for use in the Resin-CLI, although these values may be relevant elsewhere too.
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 Resin SDK instead.
Install resin-sdk-preconfigured
by running:
$ npm install --save resin-sdk-preconfigured
The exported value of this module is a ready to use Resin-SDK instance. See the Resin-SDK documentation for more information: https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.
If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.
Run the test suite by doing:
$ npm test
- Issue Tracker: github.com/resin-io-modules/resin-sdk-preconfigured/issues
- Source Code: github.com/resin-io-modules/resin-sdk-preconfigured
Before submitting a PR, please make sure that you include tests, and that npm test
builds and runs the tests without any warnings.
The project is licensed under the Apache 2.0 license.