UNPKG

guox-express

Version:

GuOx: Ultimate enterprise‑grade, AI & WASM‑powered Express security framework

11 lines (9 loc) 320 B
import { RequestHandler } from 'express'; import { GuOxConfig, Plugin } from '../types'; export function createPlugin(name:string, init:(cfg:GuOxConfig)=>RequestHandler): Plugin { return { name, onInit(instance) { /* plugin init */ }, onRegister(mw:RequestHandler) { /* after each module load */ } }; }