├── .editorconfig ├── .eslintrc.ext.json ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── ci.yaml │ └── codeql-analysis.yml ├── .gitignore ├── .license-compliancerc.js ├── .prettierignore ├── .prettierrc ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── bin └── cli.js ├── eslint.config.mjs ├── package.json ├── renovate.json ├── sonar-project.properties ├── src ├── configuration.ts ├── enumerations.ts ├── filters.ts ├── formatters │ ├── csv.ts │ ├── factory.ts │ ├── formatter.ts │ ├── index.ts │ ├── json.ts │ ├── text.ts │ └── xunit.ts ├── index.ts ├── interfaces.ts ├── license.ts ├── main.ts ├── node-modules.ts ├── npm.ts ├── program.ts ├── reports │ ├── detailed.ts │ ├── factory.ts │ ├── index.ts │ ├── reporter.ts │ └── summary.ts ├── repository.ts └── util.ts ├── tests ├── configuration │ ├── getConfiguration.spec.ts │ └── isComplianceModeEnabled.spec.ts ├── filters │ ├── excludePackages.spec.ts │ └── queryPackages.spec.ts ├── formatters │ ├── csv.spec.ts │ ├── factory.spec.ts │ ├── json.spec.ts │ ├── text.spec.ts │ └── xunit.spec.ts ├── license │ ├── getLicense.spec.ts │ ├── isLicenseValid.spec.ts │ └── onlyAllow.spec.ts ├── main.spec.ts ├── mock-packages │ ├── array-license-01 │ │ └── package.json │ ├── array-license-02 │ │ └── package.json │ ├── array-license-03 │ │ └── package.json │ ├── array-license-04 │ │ └── package.json │ ├── installation-empty │ │ └── package.json │ ├── installation-full │ │ ├── README.md │ │ ├── node_modules │ │ │ ├── dev-01 │ │ │ │ └── package.json │ │ │ ├── dev-02 │ │ │ │ └── package.json │ │ │ ├── empty-01 │ │ │ │ └── .gitkeep │ │ │ ├── prod-01 │ │ │ │ └── package.json │ │ │ ├── prod-02-02 │ │ │ │ └── package.json │ │ │ ├── prod-02 │ │ │ │ └── package.json │ │ │ ├── prod-03 │ │ │ │ ├── node_modules │ │ │ │ │ ├── @comp-01 │ │ │ │ │ │ └── core │ │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── prod-02-02 │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── prod-04-04 │ │ │ │ │ │ └── package.json │ │ │ │ │ └── prod-05-05 │ │ │ │ │ │ └── package.json │ │ │ │ └── package.json │ │ │ └── prod-04 │ │ │ │ └── package.json │ │ └── package.json │ ├── license-type-01 │ │ └── package.json │ ├── no-license │ │ └── package.json │ ├── no-package │ │ └── .gitkeep │ ├── single-license-01 │ │ ├── LICENSE │ │ └── package.json │ ├── single-license-02 │ │ ├── LICENSE-MIT │ │ └── package.json │ ├── single-license-03 │ │ └── package.json │ ├── single-license-04 │ │ ├── MY-CUSTOM-LICENSE │ │ └── package.json │ └── single-license-05 │ │ └── package.json ├── node-modules │ └── getNodeModulesPath.spec.ts ├── npm │ └── getInstalledPackages.spec.ts ├── program │ └── processArgs.spec.ts ├── reports │ ├── detailed.spec.ts │ ├── factory.spec.ts │ └── summary.spec.ts ├── repository │ └── getRepository.spec.ts └── util.ts ├── tsconfig.build.json └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.ext.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.eslintrc.ext.json -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.gitignore -------------------------------------------------------------------------------- /.license-compliancerc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.license-compliancerc.js -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/README.md -------------------------------------------------------------------------------- /bin/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require("../lib/index"); 4 | -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["config:base"] 3 | } 4 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/sonar-project.properties -------------------------------------------------------------------------------- /src/configuration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/configuration.ts -------------------------------------------------------------------------------- /src/enumerations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/enumerations.ts -------------------------------------------------------------------------------- /src/filters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/filters.ts -------------------------------------------------------------------------------- /src/formatters/csv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/formatters/csv.ts -------------------------------------------------------------------------------- /src/formatters/factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/formatters/factory.ts -------------------------------------------------------------------------------- /src/formatters/formatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/formatters/formatter.ts -------------------------------------------------------------------------------- /src/formatters/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/formatters/index.ts -------------------------------------------------------------------------------- /src/formatters/json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/formatters/json.ts -------------------------------------------------------------------------------- /src/formatters/text.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/formatters/text.ts -------------------------------------------------------------------------------- /src/formatters/xunit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/formatters/xunit.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/interfaces.ts -------------------------------------------------------------------------------- /src/license.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/license.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/node-modules.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/node-modules.ts -------------------------------------------------------------------------------- /src/npm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/npm.ts -------------------------------------------------------------------------------- /src/program.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/program.ts -------------------------------------------------------------------------------- /src/reports/detailed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/reports/detailed.ts -------------------------------------------------------------------------------- /src/reports/factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/reports/factory.ts -------------------------------------------------------------------------------- /src/reports/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./factory"; 2 | -------------------------------------------------------------------------------- /src/reports/reporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/reports/reporter.ts -------------------------------------------------------------------------------- /src/reports/summary.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/reports/summary.ts -------------------------------------------------------------------------------- /src/repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/repository.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/src/util.ts -------------------------------------------------------------------------------- /tests/configuration/getConfiguration.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/configuration/getConfiguration.spec.ts -------------------------------------------------------------------------------- /tests/configuration/isComplianceModeEnabled.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/configuration/isComplianceModeEnabled.spec.ts -------------------------------------------------------------------------------- /tests/filters/excludePackages.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/filters/excludePackages.spec.ts -------------------------------------------------------------------------------- /tests/filters/queryPackages.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/filters/queryPackages.spec.ts -------------------------------------------------------------------------------- /tests/formatters/csv.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/formatters/csv.spec.ts -------------------------------------------------------------------------------- /tests/formatters/factory.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/formatters/factory.spec.ts -------------------------------------------------------------------------------- /tests/formatters/json.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/formatters/json.spec.ts -------------------------------------------------------------------------------- /tests/formatters/text.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/formatters/text.spec.ts -------------------------------------------------------------------------------- /tests/formatters/xunit.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/formatters/xunit.spec.ts -------------------------------------------------------------------------------- /tests/license/getLicense.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/license/getLicense.spec.ts -------------------------------------------------------------------------------- /tests/license/isLicenseValid.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/license/isLicenseValid.spec.ts -------------------------------------------------------------------------------- /tests/license/onlyAllow.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/license/onlyAllow.spec.ts -------------------------------------------------------------------------------- /tests/main.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/main.spec.ts -------------------------------------------------------------------------------- /tests/mock-packages/array-license-01/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/array-license-01/package.json -------------------------------------------------------------------------------- /tests/mock-packages/array-license-02/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/array-license-02/package.json -------------------------------------------------------------------------------- /tests/mock-packages/array-license-03/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/array-license-03/package.json -------------------------------------------------------------------------------- /tests/mock-packages/array-license-04/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/array-license-04/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-empty/package.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/README.md -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/dev-01/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/dev-01/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/dev-02/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/dev-02/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/empty-01/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-01/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-01/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-02-02/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-02-02/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-02/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-02/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-03/node_modules/@comp-01/core/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-03/node_modules/@comp-01/core/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-03/node_modules/prod-02-02/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-03/node_modules/prod-02-02/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-03/node_modules/prod-04-04/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-03/node_modules/prod-04-04/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-03/node_modules/prod-05-05/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-03/node_modules/prod-05-05/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-03/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-03/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/node_modules/prod-04/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/node_modules/prod-04/package.json -------------------------------------------------------------------------------- /tests/mock-packages/installation-full/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/installation-full/package.json -------------------------------------------------------------------------------- /tests/mock-packages/license-type-01/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/license-type-01/package.json -------------------------------------------------------------------------------- /tests/mock-packages/no-license/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/no-license/package.json -------------------------------------------------------------------------------- /tests/mock-packages/no-package/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/mock-packages/single-license-01/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-01/LICENSE -------------------------------------------------------------------------------- /tests/mock-packages/single-license-01/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-01/package.json -------------------------------------------------------------------------------- /tests/mock-packages/single-license-02/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-02/LICENSE-MIT -------------------------------------------------------------------------------- /tests/mock-packages/single-license-02/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-02/package.json -------------------------------------------------------------------------------- /tests/mock-packages/single-license-03/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-03/package.json -------------------------------------------------------------------------------- /tests/mock-packages/single-license-04/MY-CUSTOM-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-04/MY-CUSTOM-LICENSE -------------------------------------------------------------------------------- /tests/mock-packages/single-license-04/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-04/package.json -------------------------------------------------------------------------------- /tests/mock-packages/single-license-05/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/mock-packages/single-license-05/package.json -------------------------------------------------------------------------------- /tests/node-modules/getNodeModulesPath.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/node-modules/getNodeModulesPath.spec.ts -------------------------------------------------------------------------------- /tests/npm/getInstalledPackages.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/npm/getInstalledPackages.spec.ts -------------------------------------------------------------------------------- /tests/program/processArgs.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/program/processArgs.spec.ts -------------------------------------------------------------------------------- /tests/reports/detailed.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/reports/detailed.spec.ts -------------------------------------------------------------------------------- /tests/reports/factory.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/reports/factory.spec.ts -------------------------------------------------------------------------------- /tests/reports/summary.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/reports/summary.spec.ts -------------------------------------------------------------------------------- /tests/repository/getRepository.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/repository/getRepository.spec.ts -------------------------------------------------------------------------------- /tests/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tests/util.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tmorell/license-compliance/HEAD/tsconfig.json --------------------------------------------------------------------------------