Skip to content

Browser extension that diffs license text against ScanCode's LicenseDB list.

License

Notifications You must be signed in to change notification settings

capfei/licensedb-diff

Repository files navigation

ScanCode LicenseDB diff browser extension (not official)

This browser extension diffs selected text to find the closest matches. This compares against the ScanCode LicenseDB list: https://scancode-licensedb.aboutcode.org/index.html.

This project was created to help me with comparing licenses easily from a browser. This is not an official extension.

Installation

This exetension has only been tested in Chrome. I would like to test other browsers in the future.

To run this extension in your browser, you will need to clone the repo locally and follow the steps to load an unpacked extension. https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked

Using the extension

To run the diff, select text on a web page and click on the extension icon. Once the comparisons have completed, it will return the top 10 results. You can select each result from the dropdown to see the differences and copy the license identifier by clicking on the copy button.

If the license has a SPDX identifier, that will be displayed instead of the ScanCode LicenseRef (LicenseRef-scancode-*).

Licenses and exceptions that marked with "is_deprecated": true are currently excluded from comparison but I would like to add the ability to include/exclude as an option in the future.

This has only been tested to diff text on web pages and will may not work correctly for documents being viewed in a browser.

About

Browser extension that diffs license text against ScanCode's LicenseDB list.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published