1.0.0-2 â€Ē Published 1 year ago

xross v1.0.0-2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

xross

const http = require("http");
const Xross = require("xross");
const app = Xross({ body_parser: true, debug: true });

app.route("/*", { method: "ANY" }, (req, res, next) => {
	res.setHeader('Content-Type', 'application/json');
	res.writeHead(200);
	res.end( JSON.stringify({ "response": "working" }) );
	next();
});

const server = http.createServer(app);
server.listen(port, host, () => {
	console.log(`Server is running`);
});

Install

npm install xross

Features

  • Scalable 🌐
  • Lightweight ðŸŠķ
  • High performance 🚀
  • Fast URL match 🏷ïļ
  • Full RexExp support 📜