Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/express-helper/express-helper
Express helper
https://github.com/express-helper/express-helper
express express-utils mvc-pattern
Last synced: about 1 month 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 (about 1 year ago)
- Default Branch: develop
- Last Pushed: 2023-10-01T23:08:50.000Z (about 1 year ago)
- Last Synced: 2024-09-30T12:23:46.064Z (about 2 months 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}`);
});
```