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