v1.3 release
Unlike v1.2, v1.3 has a new feature.
Changes
- middleware mode - beta
Prext core features can be used with http libraries such as express!
ts
const express = require('express');
const prext = require('prext');
const app = express();
async function main() {
const middlewares = await prext.middleware(await prext.getConfig());
app.use(...middlewares);
app.use((req, res) => {
res.status(404).send('Page Not Found');
});
app.listen(3000, () => prext.showListen(3000));
}
main();
TIP
example: playground
- Documentation🎉🎉🎉
prext website has been recreated via vitepress.