在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:koajs/koala开源软件地址:https://github.com/koajs/koala开源编程语言:JavaScript 95.5%开源软件介绍:KoalaαA suite of Koa utilities allowing for quicker bootstrapping, as well as a consequential guide on how to write apps using the Koa philosophy. Think of it as a KrakenJS for Koa. StatusBeware! Koala is alpha software! PhilosophyKoa is a bare minimal framework, focusing on unopinionated core HTTP utilities. However, this is not sufficient for most apps as a lot is not supported out of the box. Including a bunch of dependencies in every new app you create quickly becomes annoying. The goal of Koala is to include the most used and unopinionated parts of apps into a single framework. Many things such as body parsing, sessions, and CSRF are included. Many other things, such as routing, is too opinionated and not included. Unlike other frameworks, Koala will not dictate how to write business logic. Thanks to generators and, eventually, ES7 Async/Await, writing business logic in Koa is much easier than other frameworks, and Koala's goal is to only make it easier. Don't expect a single option to automatically do magic for your app. Feel free to create suggestions! Features and DocumentationThe Koala framework adds to Koa:
UsageSimply replace const koala = require('koala');
const app = new Koala();
app.use(async () => {
this.response.status = 204;
});
app.listen((err) => {
if (err) {
console.error(err);
throw err;
}
console.log('Koala app listening on port %s', this.address().port);
}); RoadmapSome additional features may include:
Let me know if you have any other suggestions. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论