DEV Community

Cover image for Fasteejs new fast express alternative
pouchlabs
pouchlabs

Posted on

Fasteejs new fast express alternative

new kid with added goodies ,ship production ready endpoints

  import {Fastee} from "fasteejs"
  const app = new Fastee({port:4000,delay:30000}) //pass port and shutdown delay

  app.get('/', function (req, res) {
     res.send('Hello World')
  })

app.static("static",{dotfiles:false}) //pass valid folder path and optional config

 //shutdown listener
app.onShutdown((signal)=>{
  //call service before shutdown
  console.log("before",signal)
})

  export default app

Enter fullscreen mode Exit fullscreen mode

try contibutions are welcomed
fasteejs

Top comments (0)