@knime/licenses
v1.5.0
Published
License checker and open source attribution collector
Readme
@knime/licenses
Internal utility functions checking all dependencies for allowed licenses and reporting disallowed ones.
It exposes a command line tool license-check which can be used as npm or npx run script in an importing package.
The options you can pass to the tool are documented below and can also be viewed by passing the --help option.
Project-specific license configuration
In addition to the default config shipped with @knime/licenses, you can provide project-specific settings.
By default, license-check automatically looks for one of these files in the calling project root (process.cwd()):
license.config.jslicense.config.mjslicense.config.cjslicense.config.json
You can also explicitly set a config file path with --config.
If no project config file is found, or the configured file path does not exist, the tool falls back to the default @knime/licenses configuration.
The project config must match the default config structure (onlyAllow, excludePackages, manualPackages) and is merged with the built-in defaults:
onlyAllow: concatenated and de-duplicatedexcludePackages: concatenated and de-duplicatedmanualPackages: concatenated and de-duplicated by full object content
