UNPKG

waveorb

Version:

Waveorb Javascript web app development framework

11 lines (10 loc) 275 B
module.exports = function host(app) { let name = app.config?.env?.host if (typeof name == 'string' && !name.startsWith('http')) { name = `http://${name}` } try { const uri = new URL(name) console.log(`\nServing app at ${uri.origin}\n`) } catch (e) {} }