blaker

A modern and usable web framework for Node.js.


Keywords
framework, http, rest
License
MIT
Install
npm install blaker@0.0.4

Documentation

Blaker

A modern and usable web framework for Node.js.

const { start, getUrl, getQuery, match, json } = require('blaker');

function* mainHandler() {
    const { id } = yield match('GET', '/users/:id'); // if URL is not equal /users/:id then abort

    const url = yield getUrl(); // get current url
    const query = yield getQuery(); // get all query

    return json({ paramId: id, currentUrl: url, requestQuery: query });
}

start(mainHandler)(3000); // listen 3000