Licensed under the MIT licensed, created by Michael Steinmötzger
npm install hetzner-cloud-js-ts-wrapper
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...
})