How to use the cli-table3/src/utils.mergeOptions function in cli-table3

To help you get started, we’ve selected a few cli-table3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cypress-io / cypress / packages / server / lib / util / terminal.js View on Github external
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)

cli-table3

Pretty unicode tables for the command line. Based on the original cli-table.

MIT
Latest version published 7 months ago

Package Health Score

84 / 100
Full package analysis