Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sryden/nebula

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sryden/nebula

Node.js wrapper for the Pterodactyl API

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SRYDEN Nebula

Node.js wrapper for the Pterodactyl API. This isn't fully finished, actions such as edit are not added.

Installation

Install with npm:

npm install @sryden/nebula

Usage

const nebula = require('@sryden/nebula');

nebula.config({
  panel: 'https://pterodactyl.test',
  apikey: 'ptla_xxxxxxxxxxxxxxxxxxxx',
});
// Note: Use an admin API key, not a client one

// Example: Get server list
nebula.servers.list()
  .then((serverList) => console.log('Server List:', serverList))
  .catch((error) => console.error('Error:', error));

// Example: Get details of a server
nebula.servers.getDetails(1)
  .then((serverDetails) => console.log('Server Details:', serverDetails))
  .catch((error) => console.error('Error:', error));

// Example: Create a new server
const newServer = {
  name: 'Kinetic Nibbler',
  user: 1,
  // Add other server details as per ptero API documentation
  // Not all are necessary, keep that in mind
};

nebula.servers.create(newServer)
  .then((createdServer) => console.log('Created Server:', createdServer))
  .catch((error) => console.error('Error:', error));

// Similar usage for nodes and users, refer to the ptero API documentation for more details

Configuration

Before using Nebula, make sure to configure it with your Pterodactyl panel URL and API key:

nebula.config({
  panel: 'https://pterodactyl.test',
  apikey: 'ptla_xxxxxxxxxxxxxxxxxxxx',
});

Replace the placeholder config with your actual Pterodactyl panel URL and API key.

Keywords

FAQs

Package last updated on 04 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc