The Koa2 Fork Optimized With Closure Compiler That Has Just 1 Dependency (mime-db).
npm install @goa/koa
@goa/koa is the Koa web-sever compiled and optimised with _Google Closure Compiler_ so that it has only 1 dependency (mime-db, for easy access to upgrades). The types are written as JSDoc and don't require installing typings. The aim of this project is to demonstrate how to modernise the old-school NPM package making, including starting to use import/export statements without _Babel_, restoring to pure _JSDoc_ without TypeScript, and compiling the code into the single executable using the compiler, and testing the code with _Zoroaster_ testing framework which is twice as fast and weighs 500KB against 50MB compared with _Jest_ (as used in the original repository).
| @Goa/Koa Source Code Is ~2000 Lines Of Code | |
|---|---|
![]() | |
Yarn Install | NPM Install |
`` | ` |
This package actually compiles the Goa Source Code. You can find all the documentation on that package's page.
- Table Of Contents
- API
* constructor(options=)
- Copyright & License
The package is available by importing its default class:
`js`
import Goa from '@goa/koa'
Creates a new app instance.
- options ApplicationOptions (optional): Options to create an application.
| Source | Output |
|---|---|
` const goa = new Goa() | ` { body: 'Hello World', |
GNU Affero General Public License v3.0
Original work on the Koa Web Server by its authors under MIT License found in Goa's Source Code repository.
alt="Art Deco"> | © Art Deco for Idio 2019 | alt="Tech Nation Visa"> | Tech Nation Visa Sucks |
|---|