TritonDataCenter / node-assert-plus

Extra assertions on top of node's assert module
MIT License
122 stars 25 forks source link

Add "license" and "licenses" to package.json #12

Closed garthk closed 9 years ago

garthk commented 10 years ago

Specifying your license in package.json makes it a lot easier for your users to find and comply with GNU Affero licenses.

Also giving licenses (an array of objects with type and url keys) helps users whose legal departments request both the license name and the text. See this example from async:

  "licenses": [{
    "type": "MIT",
    "url": "https://github.com/caolan/async/raw/master/LICENSE"
  }]

Though licenses isn't specified in the npm package.json spec, it is supported by the NPM site, as you'll see if you check async's NPM page.

Thanks!

bahamas10 commented 10 years ago

+1

(edit) I'm working on a project to figure out the licenses of everything a module depends on, and having the license in package.json makes it incredibly easy to do automatically.

bahamas10 commented 9 years ago

can be closed - fixed in https://github.com/mcavage/node-assert-plus/commit/bf004e141b0fa42e3d75c32971a117508a4135c6