DemocracyOS/democracyos

View on GitHub
lib/ext/index.js

Summary

Maintainability
A
1 hr
Test Coverage
'use strict'

let app

try {
  app = require('ext')
} catch (err) {
  if (err.code === 'MODULE_NOT_FOUND' &&
      err.message === 'Cannot find module \'ext\'') {
    app = require('./template')
  } else {
    throw err
  }
}

module.exports = app