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);

Readme

Keywords

none

Package Sidebar

Install

npm i xila

Weekly Downloads

0

Version

0.0.18

License

MIT

Unpacked Size

11 kB

Total Files

9

Last publish

Collaborators

  • prathyvsh