You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
375 B
17 lines
375 B
#!/usr/bin/env node
|
|
'use strict'
|
|
const localWebServer = require('../')
|
|
const streamLogStats = require('stream-log-stats')
|
|
|
|
const options = {
|
|
static: { root: '.' },
|
|
serveIndex: { path: '.' },
|
|
logger: { format: 'common', options: {
|
|
stream: streamLogStats({ refreshRate: 100 })}
|
|
}
|
|
}
|
|
|
|
localWebServer(options)
|
|
.listen(8000, () => {
|
|
console.log(`listening`)
|
|
})
|