@yandeu/express-dev
v0.0.0
Published
Simple Express.js wrapper for development.
Downloads
6
Readme
Express Dev
Contains some nice express wrapper function for simplifying express development.
Modules
For now, there is only one.
Express Listen
- Tries the next port if the current is not available.
- Provides a nice kill switch.
- Automatically opens your browser.
const listen = new ExpressListen(app)
const openBrowser = true
listen.listen(port, openBrowser).then(port => {
console.log(`Running on port ${port}`)
})
setTimeout(async () => {
await listen.kill()
}, 5000)