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

8 years ago
8 years ago
  1. #!/usr/bin/env node
  2. 'use strict'
  3. const LocalWebServer = require('../')
  4. const localWebServer = new LocalWebServer()
  5. try {
  6. localWebServer.start()
  7. } catch (err) {
  8. if (err.code === 'MODULE_NOT_FOUND') {
  9. console.error(err.message)
  10. console.error(require('util').inspect(err.attempted, { depth: 6, colors: true }))
  11. } else {
  12. console.error(err.stack)
  13. }
  14. }