@solidstate/hardhat-license-identifier
Version:
Prepend local Solidity source files with an SPDX License Identifier
24 lines (23 loc) • 652 B
JavaScript
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());
};