mirror of
https://github.com/186526/handlers.js
synced 2024-10-13 00:29:43 +00:00
27 lines
396 B
Markdown
27 lines
396 B
Markdown
# Handlers.js
|
|
|
|
> Handlers.js is a unified and lightweight web application framework for multiple platforms.
|
|
|
|
```ts
|
|
import handlerJS from "handlers.js";
|
|
|
|
const App = new handlerJS();
|
|
|
|
App.binding(
|
|
"/",
|
|
App.create("ANY", async () => "Hello World!")
|
|
);
|
|
|
|
App.useMappingAdapter();
|
|
App.listen(8080);
|
|
```
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
# Use Yarn
|
|
yarn add handlers.js
|
|
# Use NPM
|
|
npm install handlers.js
|
|
```
|