Skip to content
On this page

v1.3 release

CHANGELOG

Unlike v1.2, v1.3 has a new feature.

Changes

  1. 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


  1. Documentation🎉🎉🎉

prext website has been recreated via vitepress.