UNPKG

function-stencil

Version:

A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM deffiniation and appropriate file structure.

28 lines (23 loc) 507 B
const Table = require('cli-table') const table = new Table({ head: ['name', 'url'], style: { head: ['green'] } }) function showTable (tempList) { const list = Object.keys(tempList) if (list.length > 0) { list.forEach((key) => { table.push([key, tempList[key]]) if (table.length === list.length) { console.log(table.toString()) process.exit() } }) } else { console.log(table.toString()) process.exit() } } exports.showTable = showTable