expressjs-helper
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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.

npm i expressjs-helper

Only TypeScript is supported.

How to use

// 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}`);
});

Package Sidebar

Install

npm i expressjs-helper

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

42.6 kB

Total Files

27

Last publish

Collaborators

  • dltmd202