Skip to content

Repository files navigation

Trek Engine

Micro, Elegant, Fast, Lightweight, Expressive middleware for Modern Node.js

NPM versionMIT LicenseCodecovLinux BuildWindow Build

Features

  • Micro.

  • Elegant.

  • Fast.

  • Lightweight.

  • Expressive.

Installation

$ npm install trek-engine --save

Hello Trek Engine

constEngine=require('trek-engine')constapp=newEngine()// middlewareapp.use((ctx,next)=>{// return promisereturnnext()})// async/awaitapp.use(async(ctx,next)=>{awaitnext()})// generatorapp.use({ res }=>{
res.end('Hello Koa')})app.run(3000)

Benchmarks

See express vs koa vs toa vs trek-engine.

  • express

  • koa v2

  • toa

  • trek-engine


fundon.me · GitHub @fundon · Twitter @_fundon

About

🚀 Micro, Elegant, Fast, Lightweight, Expressive middleware for Modern Node.js

Resources

Stars

25 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages