digital-ocean

0.2.2 • Public • Published

digital-ocean

npm npm npm

Node SDK for the Digital Ocean v2 API.

Getting Started

Install digital-ocean using yarn:

yarn add digital-ocean

Usage

import DigitalOcean from 'digital-ocean';
 
const run = async () => {
  const client = new DigitalOcean({token: '<YOUR API TOKEN>'});
  const droplet = await client.createDroplet({
    // Options are passed here.
  });
 
  console.log(droplet);
};
 
run();

Contributing

If you have any ideas on how this module could be better, create an Issue or submit a PR.

Package Sidebar

Install

npm i digital-ocean

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • negativetwelve