Features
-
Elegant. Use
async
andawait
for asynchronous programs -
Fast. High performance middleware and router
-
Modern. ES6+, only for Node.js v8+
-
Flexible. Modular and extensible
-
Amiable. Similar to Express.js and Koa.js
Installation
$ npm install trek --save
Examples
Hello Trek
The lightweight app uses with Engine. Likes Koa.
const app = app app
Star Trek
The richer app, customize and expand your app.
async { // router const router = router router router // app const app = // customize paths of app apppaths apppaths apppaths // autoload plugins await app // middleware app // work with router app app // start await app}