fix(core): update

This commit is contained in:
2024-01-29 21:14:05 +01:00
parent 0ac4c6d9a1
commit 8322e8defd
4 changed files with 28 additions and 6 deletions
+10 -2
View File
@@ -23,8 +23,16 @@ PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@apiclient.xyz/hetznercloud)](https://lossless.cloud)
## Usage
Use TypeScript for best in class intellisense
For further information read the linked docs at the top of this readme.
A modern approach to talking to the hetzner API.
```typescript
import hetznerCloud from '@apiclient.xyz/hetznercloud'
const myhetznerAccount = new hetznerCloud.HetznerAccount('myToken');
const servers = const myhetznerAccount.getServers();
for (const server of servers) {
await server.delete();
}
```
## Legal
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)