For the complete documentation index, see llms.txt. This page is also available as Markdown.

Font Style

Change the header font style.

You can change the font style of the header. The following options are available:

  • bold

  • italic

  • underline

  • uppercase

  • lowercase

  • upperfirst

import { Table } from 'voici.js'

const data = [
  { firstname: 'Homer', lastname: 'Simpson', age: 39 },
  { firstname: 'Marge', lastname: 'Simpson', age: 36 },
  { firstname: 'Bart', lastname: 'Simpson', age: 10 },
  { firstname: 'Lisa', lastname: 'Simpson', age: 8 },
  { firstname: 'Maggie', lastname: 'Simpson', age: 1 }
];

const config = {
  header: {
    uppercase: true,
    underline: true
  }
};

const table = new Table(data, config);
table.print();
Console Output

Last updated