Package Exports
- linodeius
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 (linodeius) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Linodeius
This is a promise-based Node.js client for the Linode API.
NOTE: This is a work in progress.
Installation
As with any NPM package:
npm install linodeiusFor use in an application:
const Linode = require('linodeius');
const api = new Linode(api_key);
api.linode.list().then(function(linodes) {
// Use linodes data.
});Configuration
The API key can be specified in a number of locations:
- The
api_keyargument tonew Linode(). - The
LINODE_API_KEYenvironment variable which specifies the key. - The
LINODE_API_KEY_FILEenvironment variable which specifies a path to a file containing the key. - A
.linode-keyfile in the same directory as this package. - A
.linode-keyfile in the user's home directory.
The key used to make an API call is dependent on those factors evaluated in that order of priority.
TODO
- Add support for batch operations via the
api_action=batchmode.
License and Copyright
Copyright (C) 2016 Scott Tadman tadman@postageapp.com
Licensed under the MIT License. See LICENSE for details.