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)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay