Skip to content

Linux123123/JSPteroAPI

Folders and files

NameName
Last commit message
Last commit date
Feb 12, 2024
Nov 27, 2023
Aug 23, 2022
Sep 18, 2021
Jun 10, 2022
Feb 21, 2021
Dec 9, 2021
Feb 17, 2021
Mar 7, 2021
Feb 15, 2021
Jan 18, 2023
Feb 12, 2024
Jan 8, 2023
Feb 22, 2021
Feb 16, 2025

Repository files navigation

JSPteroAPI

GitHub Node.js Package GitHub issues GitHub pull requests

NPM

A simple Pterodactyl API library using undici (written in typescript)

Uses only 2 dependencies:

To install:

Install from the command line:

Npm

npm install jspteroapi

Yarn

yarn add jspteroapi

Then include it in your application:

const node = require('jspteroapi');
const application = new node.Application('HOST', 'TOKEN'); // for application API
const client = new node.Client('HOST', 'TOKEN'); // for Client API

How to use

You can use any application funtion you want:

application.function(parameters).then((response) => {
  // response
});

or using async / await

const res = await application.function(parameters);

Documentation

Versions

How versions work:

  • Panel major version
  • The second number is the function release.
  • The third number is the bug fix release.

Disclaimer

I am not responsible for any damages that you cause to your servers/nodes by using this API.

Remember: This API can potentially be dangerous with the ability to Delete Servers/Nodes at an instant!

Contributors

Created and maintained by Linux123123