MCPcopy Create free account
hub / github.com/cli-table/cli-table3 / defaultOptions

Function defaultOptions

src/utils.js:207–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205}
206
207function defaultOptions() {
208 return {
209 chars: {
210 top: '─',
211 'top-mid': '┬',
212 'top-left': '┌',
213 'top-right': '┐',
214 bottom: '─',
215 'bottom-mid': '┴',
216 'bottom-left': '└',
217 'bottom-right': '┘',
218 left: '│',
219 'left-mid': '├',
220 mid: '─',
221 'mid-mid': '┼',
222 right: '│',
223 'right-mid': '┤',
224 middle: '│',
225 },
226 truncate: '…',
227 colWidths: [],
228 rowHeights: [],
229 colAligns: [],
230 rowAligns: [],
231 style: {
232 'padding-left': 1,
233 'padding-right': 1,
234 head: ['red'],
235 border: ['grey'],
236 compact: false,
237 },
238 head: [],
239 };
240}
241
242function mergeOptions(options, defaults) {
243 options = options || {};

Callers 1

mergeOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…