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.
 
 
 

14 lines
366 B

#!/usr/bin/env node
'use strict'
const LocalWebServer = require('../')
const localWebServer = new LocalWebServer()
try {
localWebServer.start()
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
console.error(err.message)
console.error(require('util').inspect(err.attempted, { depth: 6, colors: true }))
} else {
console.error(err.stack)
}
}