jsbk

1.0.3 • Public • Published

jsbk is a framework reminiscent to ExpressJS, used for handling requests and responses. Example:

const backjs = require('jsbk');
const app = new backjs.App();
const endpoint = new backjs.Endpoint({
    url: '/',
    method: 'GET'
});
endpoint.default((req, res) => {
    res.setStatus(200).headers({
        'Content-type': 'application/json'
    })
    res.json({
        textCapitalized: req.body.toUpperCase()
    })
});
app.bind(endpoint);
app.listen(3000);

Package Sidebar

Install

npm i jsbk

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

529 kB

Total Files

7

Last publish

Collaborators

  • purenodejs