Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
show how to correct bad multi-license metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed May 6, 2015
1 parent 69d7631 commit 266771a
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions doc/files/package.json.md
Expand Up @@ -120,23 +120,30 @@ idea to include a LICENSE file at the top level of the package.
Some old packages used license objects or a "licenses" property containing an
array of license objects:

// Not valid metadata
{ "license" :
{ "type" : "MIT"
, "url" : "http://opensource.org/licenses/MIT"
{ "type" : "ISC"
, "url" : "http://opensource.org/licenses/ISC"
}
}
}

// Not valid metadata
{ "licenses" :
[
{ "type" : "MIT"
, "url" : "http://opensource.org/licenses/MIT"
{ "type": "MIT"
, "url": "http://www.opensource.org/licenses/mit-license.php"
}
, { "type": "Apache-2.0"
, "url": "http://opensource.org/licenses/apache2.0.php"
}
]
}

Those styles are now deprecated. Instead, use an SPDX expression, like this:
Those styles are now deprecated. Instead, use SPDX expressions, like this:

{ "license": "ISC" }

{ "license": "MIT" }
{ "license": "(MIT OR Apache-2.0)" }

## people fields: author, contributors

Expand Down

0 comments on commit 266771a

Please sign in to comment.