types icon indicating copy to clipboard operation
types copied to clipboard

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

Open broofa opened this issue 2 years ago • 0 comments

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

broofa avatar Nov 25 '23 23:11 broofa