Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Add types for legacy (deprecated) license forms #27

Open
broofa opened this issue Nov 25, 2023 · 0 comments
Open

[BUG] Add types for legacy (deprecated) license forms #27

broofa opened this issue Nov 25, 2023 · 0 comments

Comments

@broofa
Copy link
Contributor

broofa commented Nov 25, 2023

Per https://docs.npmjs.com/cli/v10/configuring-npm/package-json#license prior to the current SPDX license string format, packages may have specified licenses as an object with type and url properties, or an array of such objects. Moreover, this structure may appear under license or licenses properties. For example:

$ npm info --json [email protected]
{
 ...
  "licenses": [
    {
      "type": "MIT",
      "url": "http://github.com/tautologistics/node-htmlparser/raw/master/LICENSE"
    }
  ],
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant