UNPKG

@dotenvx/dotenvx-pro

Version:

Secrets Management – Done Right. 🏆

17 lines (13 loc) 435 B
const current = require('./../../../db/current') const smartMask = require('./../../../lib/helpers/smartMask') function token () { const options = this.opts() const token = current.token() if (token && token.length > 1) { process.stdout.write(smartMask(token, options.unmask, 11)) } else { console.error('missing token. Try generating one with [dotenvx pro login].') process.exit(1) } } module.exports = token