Skip to content

negativetwelve/digital-ocean

Repository files navigation

Digital Ocean

npm npm npm CircleCI Travis AppVeyor Coveralls

Node SDK and CLI tool for Digital Ocean.

Getting Started

Install the global CLI via:

yarn global add digital-ocean-cli

This will make the docli tool available on your machine.

SDK

Install digital-ocean using yarn:

yarn add digital-ocean

Use it within code:

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();

Packages

Package Version Description
digital-ocean npm Node SDK for Digital Ocean
digital-ocean-cli npm CLI for Digital Ocean

Contributing

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

About

Node SDK and CLI tool for Digital Ocean API v2

Resources

License

Stars

Watchers

Forks

Packages

No packages published