Current collected state Current
Observed since 20 Oct, 19:12 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
An opinionated express application framework
A semi-opinionated framework for setting up Express apps.
$ npm install --save 2ex
const createApp = require('2ex')
const runApp = createApp((app, opts = {}) => {
// Handle app errors
app.on('error', console.error)
// Load in your routes
app.get('/', (req, res) => {
res.send(`Hello ${opts.message}!`)
})
})
// Start the app
runApp({
port: 8080,
message: 'World'
}).then(({ app, server }) => {
const addr = server.address()
console.log(`Server started at http://${app.get('host')}:${addr.port}`)
})
This package sets up common requirements for running an Express app in production with the goal of reducing boilerplate in your applications. Here is a list of some of those things:
5.0.0-alpha.7 at the time of publishing this)
path-to-regexx-powered-by headersimple (faster, more secure, planned default for 5.0)uncaughtException and unhandledRejectionclientErrorsoptions.parseCookiesDownload counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:12 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0255348baaca7569dbbedb27853f8138743b713a7304b99e3b9b2b0705ea72b5