newpct-scrapper
Version:
Utilidades para newpct
19 lines (16 loc) • 389 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = printTable;
require('console.table');
function printTable(torrents) {
console.table(torrents.map((torrent, i) => {
return {
'N': i + 1,
'Título': torrent.title,
'Tamaño': torrent.formatSize
};
}));
} /* Imprime un array de objetos con formato de tabla
*/