Skip to content

Template to build and release Elysia plugins 🦊

License

Notifications You must be signed in to change notification settings

yolk-oss/elysia-plugin-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Template to build and release Elysia plugins 🦊

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published