@sryden/helium

1.1.0 • Public • Published

SRYDEN Helium

Helium is a Node.js module for interacting with Heliactyl's API.

Installation

npm install @sryden/helium

Usage

const Helium = require('@sryden/helium');

// Initialize with your Heliactyl URL
const helium = new Helium('https://heliactyl.test', 'apikey');

// Example: Set package
const setPackageResult = await helium.setPackage({
  body: {
    id: 'user123',
    package: 'somePackage',
  },
});
console.log('setPackage Result:', setPackageResult);

// Example: Set resources
const setResourcesResult = await helium.setResources({
  body: {
    id: 'user123',
    ram: 1024,
    disk: 50000,
    cpu: 2,
    servers: 5,
  },
});
console.log('setResources Result:', setResourcesResult);

Methods

  • setPackage(reqBody)
  • setResources(reqBody)
  • addCoins(reqBody)
  • addResources(reqBody)
  • setPlan(reqBody)
  • userInfo(reqBody)
  • setCoins(reqBody)
  • createCoupon(reqBody)

Readme

Keywords

Package Sidebar

Install

npm i @sryden/helium

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

2.79 kB

Total Files

3

Last publish

Collaborators

  • halex