Gathering detailed insights and metrics for tf-licence-checker
Gathering detailed insights and metrics for tf-licence-checker
Gathering detailed insights and metrics for tf-licence-checker
Gathering detailed insights and metrics for tf-licence-checker
npm install tf-licence-checker
Typescript
Module System
Node Version
NPM Version
75.6
Supply Chain
99
Quality
77.8
Maintenance
100
Vulnerability
87.6
License
JavaScript (100%)
Total Downloads
174,481
Last Day
693
Last Week
3,352
Last Month
13,832
Last Year
122,623
MIT License
17 Stars
20 Commits
1 Forks
1 Branches
2 Contributors
Updated on Aug 05, 2024
Minified
Minified + Gzipped
Latest Version
1.1.9
Package Id
tf-licence-checker@1.1.9
Unpacked Size
15.52 kB
Size
4.99 kB
File Count
11
NPM Version
9.6.5
Node Version
18.15.0
Published on
Apr 28, 2023
Cumulative downloads
Total Downloads
Last Day
-19.6%
693
Compared to previous day
Last Week
-13.9%
3,352
Compared to previous week
Last Month
-2.7%
13,832
Compared to previous month
Last Year
179.2%
122,623
Compared to previous year
2
1
Check your installed packages and their licences against allowed licences list.
Installation:
npm install tf-licence-checker --save-dev
Create config file in your project
licence-checker.config.js
If licence checker not found config file, default will be used
allowedLicenses
array allowed licencesignoredPackages
ignored packages that will not be included in reportpackage
path to your package.json file, default: ./package.json
checkDevDependencies
include dev dependencies in reportconst config = {
allowedLicenses: [
'(Apache-2.0 OR MPL-1.1)',
'(BSD-2-Clause OR WTFPL)',
'(CC-BY-4.0 AND MIT)',
'(MIT AND BSD-3-Clause)',
'(MIT AND CC-BY-3.0)',
'(MIT AND Zlib)',
'(MIT OR Apache-2.0)',
'(MIT OR CC0-1.0)',
'(Unlicense OR Apache-2.0)',
'(WTFPL OR MIT)',
'0BSD',
'AFLv2.1',
'Apache 2.0',
'Apache License, Version 2.0',
'Apache-2.0',
'Apache2',
'BSD-2-Clause',
'BSD-3-Clause OR MIT',
'BSD-3-Clause',
'CC-BY-3.0',
'CC-BY-4.0',
'CC0-1.0',
'ISC',
'MIT',
'MIT,Apache2',
'MPL-1.1',
'WTFPL',
'Zlib',
],
ignoredPackages: [],
package: './package.json',
checkDevDependencies: true,
}
module.exports = config;
Report show table with installed packages and blacklisted licences used in your project.
Add script to your package.json file:
"licence-checker": "tf-licence-checker --config={pathToConfig}"
or to use default config:
"licence-checker": "tf-licence-checker"
and then run:
npm run licence-checker
Table columns:
name
package nameversion
package versionauthor
package authorlicence type
package licence typeis alllowed
whenever is licence allowed to useName Version Author License type Is allowed
---- ------- ------ ------------ ----------
text-table 0.2.0 James Halliday mail@substack.net http://substack.net MIT true
yargs 17.6.2 n/a MIT true
@types/yargs 17.0.22 n/a MIT true
ag-grid-enterprise 27.3.0 Niall Crosby <niall.crosby@ag-grid.com> Commercial false
BLACKLISTED LICENSE AT MODULE NAME: ag-grid-enterprise
| LICENSE: Commercial
| AUTHOR: Niall Crosby <niall.crosby@ag-grid.com>
| VERSION: 27.3.0
No vulnerabilities found.
No security vulnerabilities found.