This is a simple wrapper for license-checker-rseidelsohn that allows you to check the license of your monorepo.
$ npm install -g monorepo-license-checker
$ cd your-monorepo
$ monorepo-license-checker
$ monorepo-license-checker --help
Options:
--json Output in JSON format.
--csv Output in CSV format.
--markdown Output in markdown list format.
--markdown-table Output in markdown table format.
--exclude-private-packages Restrict output to not include any package marked as private.
--help The text you are reading right now :)
import { checkLicenses } from 'monorepo-license-checker';
const cwd = process.cwd();
checkLicenses(cwd).then((models) => {
console.log(models);
})