Is it possible without installing new package?
Here i am using cli-table package..
Any easy way to do it ?
node.js version v10.16.0, you can use console.table API without installing any node module.
const structDatas = [
{ handler: 'http', endpoint: 'http://localhost:3000/path', method: 'ALL' },
{ handler: 'event', endpoint: 'http://localhost:3000/event', method: 'POST' },
{ handler: 'GCS', endpoint: 'http://localhost:3000/GCS', method: 'POST' }
];
console.table(structDatas);
The stdout in terminal like this: