1.0.3 • Published 3 years ago

jsbk v1.0.3

Weekly downloads
8
License
ISC
Repository
-
Last release
3 years ago

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);
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago