JSPM

  • Created
  • Published
  • Downloads 241
  • Score
    100M100P100Q78920F
  • License GNU AGPL

Package Exports

  • @carbonhost/typescript
  • @carbonhost/typescript/dist/index.js
  • @carbonhost/typescript/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@carbonhost/typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Carbon TypeScript SDK

License TypeScript Build npm

The Carbon TypeScript SDK enables easy integration with the Carbon Host platform for managing Minecraft server hosting and related services. Built with TypeScript, it provides a streamlined interface for creating, managing, and deploying Minecraft servers.

Installation

To install the SDK, use your preferred package manager:

npm install @carbonhost/typescript
bun add @carbonhost/typescript

Usage

Import the SDK in your TypeScript project and initialize it with your API key to get started.

import Carbon from '@carbonhost/typescript';

const carbon = new Carbon({ apiKey: 'your-api-key' });

// Example: Fetch all stars (given top level await, otherwise fetch Promises accordingly)
const stars = await carbon.getStars();

console.log(stars);

Documentation

For full documentation, visit the Documentation page.

Support

If you encounter issues or have questions, open an issue on our GitHub Issues page or join our Discord server.

License

This project is licensed under the GNU AGPL License.