Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const table = function (options = {}) {
const { colWidths, type } = options
const defaults = utils.mergeOptions({})
let chars = _.defaults(getChars(type), defaults.chars)
_.defaultsDeep(options, {
chars,
style: {
head: [],
border: [],
'padding-left': 1,
'padding-right': 1,
},
});
({ chars } = options)
const borders = getBordersLength(chars.left, chars.right)