From 266771a9addafb5dcdecc829e9b1e5d097f8c337 Mon Sep 17 00:00:00 2001 From: Kyle Mitchell Date: Wed, 6 May 2015 21:39:00 +0000 Subject: [PATCH] show how to correct bad multi-license metadata --- doc/files/package.json.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/files/package.json.md b/doc/files/package.json.md index 040fa5a0123..0251a6ca346 100644 --- a/doc/files/package.json.md +++ b/doc/files/package.json.md @@ -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