Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linodeius

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linodeius

Linode API Client

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Linodeius

This is a promise-based Node.js client for the Linode API version 3.3.

Installation

Install the NPM package and any dependencies automatically with:

npm install linodeius --save

For use in an application:

const Linode = require('linodeius');
const api = new Linode(api_key);

api.linode.list().then(linodes => {
  // ...
});

Or for Node.js 8+ with support for async/await:

const Linode = require('linodeius');
const api = new Linode(api_key);

let linodes = await api.linode.list();

// ...

Configuration

The API key can be specified in a number of locations:

  • The api_key argument to new Linode().
  • The LINODE_API_KEY environment variable which specifies the key.
  • The LINODE_API_KEY_FILE environment variable which specifies a path to a file containing the key.
  • A .linode-key file in the same directory as this package.
  • A .linode-key file 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=batch mode.

Copyright (C) 2016-2017 Scott Tadman tadman@postageapp.com, PostageApp.

Licensed under the MIT License. See the LICENSE file for details.

Keywords

FAQs

Package last updated on 23 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc