https://github.com/nodef/extra-express
Support methods for express package.
https://github.com/nodef/extra-express
app express extra framework method package rest restful router support
Last synced: about 1 hour ago
JSON representation
Support methods for express package.
- Host: GitHub
- URL: https://github.com/nodef/extra-express
- Owner: nodef
- License: bsd-3-clause
- Created: 2019-04-06T08:19:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T17:12:54.000Z (11 months ago)
- Last Synced: 2025-10-08T05:41:14.042Z (5 months ago)
- Topics: app, express, extra, framework, method, package, rest, restful, router, support
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/extra-express
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Support methods for [express package].
> Need to handle error from express routes using async?
```javascript
const express = require('extra-express');
const http = require('http');
const app = express();
const server = http.createServer(app);
const sleep = (ms) => new Promise(fres => setTimeout(fres, ms));
app.get('/', express.async(async (req, res) => {
await sleep(1000);
res.send('Hello after 1s');
}));
server.listen(8000);
```
## reference
```javascript
const express = require('extra-express');
// : includes all functions of "express"
express.async(callback);
: callback(req, res, [next])
```
[](https://nodef.github.io)

[express package]: https://www.npmjs.com/package/express