Skip to content

matroskin13/blaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A modern and usable web framework for Node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published