2022-06-29 20:00:52 +00:00
|
|
|
# Handlers.js
|
|
|
|
|
|
|
|
> Handlers.js is a unified and lightweight web application framework for multiple platforms.
|
|
|
|
|
|
|
|
```ts
|
2022-07-04 10:07:05 +00:00
|
|
|
import handlerJS from "handlers.js";
|
2022-06-29 20:00:52 +00:00
|
|
|
|
|
|
|
const App = new handlerJS();
|
|
|
|
|
|
|
|
App.binding(
|
|
|
|
"/",
|
|
|
|
App.create("ANY", async () => "Hello World!")
|
|
|
|
);
|
|
|
|
|
|
|
|
App.useMappingAdapter();
|
|
|
|
App.listen(8080);
|
|
|
|
```
|
2022-07-04 09:55:12 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Use Yarn
|
2022-07-04 10:07:05 +00:00
|
|
|
yarn add handlers.js
|
2022-07-04 09:55:12 +00:00
|
|
|
# Use NPM
|
2022-07-04 10:07:05 +00:00
|
|
|
npm install handlers.js
|
2022-07-04 09:55:12 +00:00
|
|
|
```
|