Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 2.83 KB

README.md

File metadata and controls

68 lines (50 loc) · 2.83 KB

elysia-plugin

elysia yolk-oss npm version npm downloads bundle License XO code style

description

Installation

bun add elysia-plugin

Usage

import { Elysia, t } from 'elysia'
import { plugin } from 'elysia-plugin'

const app = new Elysia()
  .use(plugin())
  .get('/', ({ plugin }) => plugin)
  .listen(8080)

console.log(`Listening on http://${app.server!.hostname}:${app.server!.port}`)

Checkout the examples and tests folders on github.

Note

Replace elysia-plugin, _description_ and yolk-oss globally to use this template.

Important

Don't forget to update installation and usage guide

About Template

Build with:

  • xo is used for code linting and formating
  • bumpp is used for version bumping
  • unbuild is used for building

License

MIT