xila

0.0.18 • Public • Published

Xila

A minimal node.js server

Usage

Setting up a server

import * as xila from "xila";

const server = xila.serve("Welcome to Xila!");

server.listen(4001);

Sample routes

A sample JSON route can be registered as:

import * as xila from "xila";

const server = xila.serve(
    xila.get("/pranav", xila.json({hello: 'there'})));

server.listen(4000);

server.on("error", console.log);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.18
    2
    • latest

Version History

Package Sidebar

Install

npm i xila

Weekly Downloads

7

Version

0.0.18

License

MIT

Unpacked Size

11 kB

Total Files

9

Last publish

Collaborators

  • prathyvsh