plesk.js
Version:
A simpler way to use the Plesk REST api
35 lines (23 loc) • 860 B
Markdown
A simpler way to use the Plesk REST api
[](https://www.github.com/ubarilan), [idandev](https://www.github.com/idandev)
**How to install:**
```bash
npm install plesk-node
```
**Github repository:**
[](https://github.com/ubarilan/plesk-node)
**Example of usage:**
```js
import PleskClient from "plesk-node";
// You can also use: const PleskClient = require("plesk-node")
const plesk = new PleskClient(
"hostname:8443", // hostname + port of Plesk panel.
"apikey/base64 of username:password", // https://www.base64decode.org/ you can use this website to create your base64 api key.
["1.1.1.1"], // IPs list
"admin" // Default owner of all accounts created by this module.
);
plesk.getIPs().then((ips) => console.log(ips));
```
© Hostar 2021.