hetzner-cloud-js-ts-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

JavaScript & TypeScript - Hetzner-API Wrapper

Licensed under the MIT licensed, created by Michael Steinmötzger

NPM Package

npm

Installation

npm install hetzner-cloud-js-ts-wrapper

Tutorials

import {HetznerCloud} from "./HetznerCloud";

// API-Token available in the Hetzner-Cloud Dashboard
const cloud = new HetznerCloud("token");

// Get all servers
cloud.getServerManager().getAllServers().then(servers => {
    // your code...
})

// create a server
cloud.getServerManager().createServer({
    //...
}).then(response => {
    // your code...
})

// delete a server
cloud.getServerManager().deleteServer(/*serverid*/).then(() => {
    //your code...
})

Readme

Keywords

none

Package Sidebar

Install

npm i hetzner-cloud-js-ts-wrapper

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

23.1 kB

Total Files

42

Last publish

Collaborators

  • shortping