UNPKG

app-decorators

Version:

Collection of useful ES7 Decorators, writtin in ES6, that can be used for building webapps

10 lines (7 loc) 255 B
let express = require('express'); let app = express(); let [,,type, number] = process.argv; let port = 3000; type === 'port' && number && (port = number); app.use(express.static('./')); app.listen(port, () => console.log(`Server: localhost: ${port}`));