0.2.0 • Published 3 years ago

picowebjs v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

0.2.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago