Skip to content

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

@broofa

Description

@broofa

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"
    }
  ],
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions