Skip to content

Commit cb0bb7f

Browse files
author
Gabriel P.
committed
fix(readme): update link to npm
1 parent 834ff3c commit cb0bb7f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22

33
[![CI](https://github.com/PlanetHoster/ph-node-api/actions/workflows/ci.yml/badge.svg)](https://github.com/PlanetHoster/ph-node-api/actions/workflows/ci.yml)
44

5-
[![NPM](https://nodei.co/npm/@planethoster-oss/api.png)](https://nodei.co/npm/@planethoster-oss/api/)
5+
[![NPM](https://nodei.co/npm/@planethoster-oss/api.png)](https://www.npmjs.com/package/@planethoster-oss/api)
66

77
NodeJS PlanetHoster API integration.
88

99
Please refer to the documentation of the [PlanetHoster API](https://apidoc.planethoster.com/) for all endpoints details.
1010

1111
## Installation
12+
1213
```
1314
npm install @planethoster-oss/api
1415
```
1516

1617
## Usage
18+
1719
```javascript
18-
const PhNodeApi = require('@planethoster-oss/api');
20+
const PhNodeApi = require("@planethoster-oss/api");
1921

2022
async function testConnection(api) {
2123
try {
@@ -26,9 +28,9 @@ async function testConnection(api) {
2628
}
2729

2830
const api = new PhNodeApi({
29-
api_key: 'API_KEY',
30-
api_user: 'API_USER'
31+
api_key: "API_KEY",
32+
api_user: "API_USER",
3133
});
3234

3335
testConnection(api);
34-
```
36+
```

0 commit comments

Comments
 (0)