1.4.0 ā€¢ Published 10 days ago

easypanel.js v1.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 days ago

easypanel.js

šŸ’¬ Object-oriented library to interact with Easypanel!.

Installation

npm install easypanel.js

Example

Here is a an example

import "dotenv/config";
import { Client } from "easypanel.js";

export const client = new Client({
  endpoint: process.env.domain, // easypanel domain https://easypanel.example.com
  //@deprecated
  credentials: {
    email: process.env.email,
    password: process.env.psw,
  },
  token: process.env.token, // when provided package will skip authenticating if token works!
});

client.on("ready", async () => {
  console.log("Client is ready!");
  console.log(await client.projects.list());
});

await client.login();

Vitest Test Results

{
  "version": "0.34.6",
  "results": [
    [":tests/license.test.ts", { "duration": 146, "failed": false }],
    [":tests/setting.test.ts", { "duration": 2803, "failed": false }],
    [":tests/monitor.test.ts", { "duration": 4484, "failed": false }],
    [":tests/projects.test.ts", { "duration": 481, "failed": false }],
    [":tests/services.test.ts", { "duration": 3855, "failed": false }]
  ]
}

You may find all examples on Github

Links

1.4.0

10 days ago

1.2.2

3 months ago

1.3.0

3 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.9

4 months ago

1.1.8

4 months ago

1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

2.0.0

6 months ago

1.0.0

6 months ago