Gathering detailed insights and metrics for ux-license-report
Gathering detailed insights and metrics for ux-license-report
npm install ux-license-report
Typescript
Module System
Min. Node Version
Node Version
NPM Version
57.3
Supply Chain
89.3
Quality
71.7
Maintenance
25
Vulnerability
97.4
License
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
52,287
Last Day
39
Last Week
187
Last Month
719
Last Year
8,682
Apache-2.0 License
1 Stars
42 Commits
1 Forks
26 Watchers
1 Branches
9 Contributors
Updated on Sep 13, 2023
Minified
Minified + Gzipped
Latest Version
1.2.1
Package Id
ux-license-report@1.2.1
Unpacked Size
81.46 kB
Size
25.56 kB
File Count
7
NPM Version
6.4.1
Node Version
11.5.0
Cumulative downloads
Total Downloads
Last Day
39.3%
39
Compared to previous day
Last Week
28.1%
187
Compared to previous week
Last Month
-9.7%
719
Compared to previous month
Last Year
32.8%
8,682
Compared to previous year
5
Generates license reports of 3rd-party software dependencies
Looks through a project's npm dependencies
(and optionally devDependencies
and Bower dependencies
), pulls out licensing information, and compiles it into a given template.
1const licenser = require('ux-license-report'); 2 3let report = licenser.generateReport(); 4console.log(report.toString()); // print it to the console 5report.write('report.txt'); // saves the report to a file
generateReport(opts)
Returns a Promise that resolves to the generated report.
Options:
context
: Object of values (indexed by property) to add to the template. Default is {}
.include
: Array of npm
(for package.json dependencies
), dev
(for package.json devDependencies
), and/or bower
(for bower.json dependencies
). Default is ['npm']
.path
: The root path of the project.template
: Lodash template string to use when rendering. Default is in template.txt
.The returned report object has the following properties:
toString()
: Returns the compiled report.warnings
: An array of any warnings that occurred.write(filename)
: Saves the compiled report to a file.If you have this module installed globally or inside another project, you can call it on the command line from the generate-license-report.js
script:
$ ./generate-license-report.js [ROOTPATH]
[--include npm] [--include dev] [--include bower]
[--template FILE]
[--CONTEXT VALUE --CONTEXT VALUE ...]
> licenses.txt
If the root path is not specified, the current working directory is used. The default values for other options are the same as the API.
All options are passed through to the template, so you can add to the context by passing scalar values or JSON strings. For example: ./generate-license-report.js --foo 1 --bar '{"bar": "value"}'
.
The generated report sent to standard output (stdout
), so you can save it by redirecting it to a file (as shown in the example above). Any errors or warnings are sent to standard error (stderr
).
Call the script with the --help
option (./generate-license-report.js --help
) to see the usage info.
Please add tests and maintain the existing styling when adding and updating the code.
yarn lint # run linting
yarn test # run tests
Have an issue or feature request? Please open a new issue.
Copyright 2017 Jack Henry & Associates Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/22 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-03-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More