An open API service indexing awesome lists of open source software.

https://github.com/elysiajs/node

Elysia Node Adapter
https://github.com/elysiajs/node

Last synced: 6 months ago
JSON representation

Elysia Node Adapter

Awesome Lists containing this project

README

          

# @elysiajs/node
Adapter for [elysia](https://github.com/elysiajs/elysia) to use Elysia in Nodejs environment.

## Installation
```bash
bun add @elysiajs/node
```

## Example
```typescript
import { Elysia } from 'elysia'
import { node } from '@elysiajs/node'

const app = new Elysia({ adapter: node() })
.get('/', () => 'Hello Node!')
.listen(3000)
```

### Note
Node adapter is not feature complete yet. Some features are not supported, such as:
- not support `ws` method