RafalWilinski / express-status-monitor

🚀 Realtime Monitoring solution for Node.js/Express.js apps, inspired by status.github.com, sponsored by https://dynobase.dev
https://dynobase.dev/
MIT License
3.59k stars 253 forks source link

ES5 import clause #193

Open brunolnetto opened 1 year ago

brunolnetto commented 1 year ago

How do I import the library on ES5 javascript?

gsimko commented 1 year ago

If you mean how to include it with ESM then the following works:

import monitor from "express-status-monitor";
app.use(monitor());