https://github.com/elysiajs/node
Elysia Node Adapter
https://github.com/elysiajs/node
Last synced: 6 months ago
JSON representation
Elysia Node Adapter
- Host: GitHub
- URL: https://github.com/elysiajs/node
- Owner: elysiajs
- License: mit
- Created: 2024-11-15T09:49:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T14:59:37.000Z (about 1 year ago)
- Last Synced: 2024-11-23T15:32:39.800Z (about 1 year ago)
- Language: TypeScript
- Size: 38.7 MB
- Stars: 14
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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