Open2

【Node.js】簡易スクリプトのログ表示

直也テック直也テック

https://www.npmjs.com/package/cli-table3

const Table = require('cli-table3');
const headers = ['', 'Project 1', 'Project 2'];
var table = new Table({ head: headers });

console.log(`---------Check Task A---------`);

table.push(
    { 'Task 1': ['✅Done', '未完了'] }
  , { 'Task 2': ['✅Done', '未完了'] }
);

console.log(table.toString());

console.log(`---------Check Task B---------`);

console.log(table.toString());