https://github.com/express-helper/express-helper
Express helper
https://github.com/express-helper/express-helper
express express-utils mvc-pattern
Last synced: 6 months ago
JSON representation
Express helper
- Host: GitHub
- URL: https://github.com/express-helper/express-helper
- Owner: express-helper
- License: mit
- Created: 2023-09-23T16:22:10.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-10-01T23:08:50.000Z (over 2 years ago)
- Last Synced: 2025-02-23T13:38:16.643Z (over 1 year ago)
- Topics: express, express-utils, mvc-pattern
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/expressjs-helper
- Size: 80.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# expressjs-helper
This library is a utility library that runs on top of express and is lightweight,
but supports many convenient functions for using express.
```bash
npm i expressjs-helper
```
Only [TypeScript](https://www.typescriptlang.org/) is supported.
## How to use
```typescript
// controller/TestController.ts
@RestController()
export class TestController{
@Get("/hello")
get(){
return "helloWorld";
}
}
// app.ts
const app: Express = express();
const port = 8000;
app.use(expressHelper());
app.use(expressHelperEndpoint());
app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
});
```