You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, the GitHub API is not able to detect the license of a given package. However, it is still possible to find the license by analysing the README, COPYING or LICENSE files in the repository. Examples:
Please be aware these files can have no extension, a markdown (.md) extension, plain text extension (.txt), reStructuredText extension (.rst) or even HTML (.html) extension.
We could search these files for known license names, such as: "MIT", "GPL", "Public Domain", "Apache License Version 2.0, etc..."
Also, sometimes, the repository has a custom license. For instance: https://github.com/w3c-validators/w3c_validators/blob/master/LICENSE. Since this license does not match any license from the database, but the repository has a LICENSE file, we can include the url for this file in the "licenses" field.
The text was updated successfully, but these errors were encountered:
In some cases, the GitHub API is not able to detect the license of a given package. However, it is still possible to find the license by analysing the README, COPYING or LICENSE files in the repository. Examples:
Please be aware these files can have no extension, a markdown (.md) extension, plain text extension (.txt), reStructuredText extension (.rst) or even HTML (.html) extension.
We could search these files for known license names, such as: "MIT", "GPL", "Public Domain", "Apache License Version 2.0, etc..."
In fact, we can build a comprehensive database of known licenses from https://spdx.org/licenses/ and https://opensource.org/licenses/alphabetical and search for occurrences in those files.
Also, sometimes, the repository has a custom license. For instance: https://github.com/w3c-validators/w3c_validators/blob/master/LICENSE. Since this license does not match any license from the database, but the repository has a LICENSE file, we can include the url for this file in the "licenses" field.
The text was updated successfully, but these errors were encountered: