0.2.0 • Published 2 years ago

picowebjs v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago
        A simple wrapper around Koa web framework.
        **Not ready for Production**


        let webServer = require("picoweb");

        webServer.viewRoot(__dirname);
        webServer.static(__dirname);

        const home = async (ctx) => {
            await ctx.view("index.html");
        }

        webServer.routes([
            { path: "/html", method: "GET", handler: home }
        ]);

        webServer.stopOnInt();
        webServer.start(7861, true);
0.1.0

2 years ago

0.2.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago