Open2
【Node.js】簡易スクリプトのログ表示
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());
- https://www.npmjs.com/package/picocolors
- 文字に色付けで使える