easypanel-sdk
v0.3.1
Published
EasyPanel is Next Generation Server Control Panel
Downloads
8
Maintainers
Readme
Easypanel SDK
|
easypanel - This is an unofficial sdk for Easypanel.
Installation
pnpm install easypanel-sdk
yarn add easypanel-sdk
npm install easypanel-sdk
Usage
import { easypanel } from 'easypanel-sdk'
import { config } from 'dotenv'
config()
const app = easypanel({
endpoint: process.env.EASYPANEL_URL || '',
token: process.env.EASYPANEL_TOKEN || '',
})
const project = await app.projects.create({ name: 'NewProject' })
console.warn(project)
Development
Requires pnpm >= 8.10.0 Requires node >= 20.0.0
pnpm install
pnpm dev # watch mode tsup
pnpm build # build
Playground
cd playground
pnpm install
pnpm dev # send requests and close
Sponsors
License
MIT License © 2023-PRESENT productdevbook