Skip to content

Commit

Permalink
docs: add package.json "sustainability" property
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Aug 25, 2019
1 parent 656bce7 commit 6722732
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/files/package.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,23 @@ Both email and url are optional either way.

npm also sets a top-level "maintainers" field with your npm user info.

## sustainability

You can specify an HTTP endpoint for up-to-date information about ways
to sustain development of your package so that people can learn more ways
to support your work:

{ "sustainability": "https://example.com/sustainability.json" }

You may like to develop your sustainability file as a file in your
source repository:

{ "sustainability": "https://raw.githubusercontent.com/{user}/{repo}/master/sustainability.json" }

The end point you specify should respond to unauthenticated GET
requests with a JSON body that conforms to the [sustainability data
schema](https://www.npmjs.com/package/sustainability-schema).

## files

The optional `files` field is an array of file patterns that describes
Expand Down

0 comments on commit 6722732

Please sign in to comment.