npm-consider
Version:
Check npm package dependencies, stats and impact on your package before installing it
31 lines (27 loc) • 491 B
JavaScript
/**
* @file returns table without borders
*/
const Table = require('cli-table3');
const chars = {
top: '',
'top-mid': '',
'top-left': '',
'top-right': '',
bottom: '',
'bottom-mid': '',
'bottom-left': '',
'bottom-right': '',
left: '',
'left-mid': '',
mid: '',
'mid-mid': '',
right: '',
'right-mid': '',
middle: ' '
};
module.exports = function getSimpleTable() {
return new Table({
chars,
style: { 'padding-left': 0, 'padding-right': 1 }
});
};