UNPKG

@solidstate/hardhat-license-identifier

Version:
24 lines (23 loc) 652 B
import { createTable } from '@solidstate/hardhat-solidstate-utils/table'; export const printSourceLicenses = (sourceLicenses) => { const table = createTable(); table.push([ { content: 'package.json license', }, { content: 'TODO: try to store ', }, ]); table.push([ { content: 'Source Path', }, { content: 'License' }, ]); for (const sourceLicense of sourceLicenses) { const { sourcePath, license } = sourceLicense; table.push([{ content: sourcePath }, { content: license }]); } console.log(table.toString()); };