UNPKG

@dotenvx/dotenvx-pro

Version:
20 lines (17 loc) 471 B
const { logger } = require('@dotenvx/dotenvx') const current = require('./../../../db/current') function hostname () { try { const _hostname = current.hostname() if (_hostname && _hostname.length > 1) { process.stdout.write(_hostname) } else { logger.error('missing hostname. Try running [dotenvx pro login].') process.exit(1) } } catch (error) { logger.error(error.message) process.exit(1) } } module.exports = hostname