File tree Expand file tree Collapse file tree
docs/lib/content/configuring-npm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,23 +225,35 @@ npm also sets a top-level "maintainers" field with your npm user info.
225225### funding
226226
227227You can specify an object containing a URL that provides up-to-date
228- information about ways to help fund development of your package, or a
229- string URL, or an array of these :
228+ information about ways to help fund development of your package, a
229+ string URL, or an array of objects and string URLs :
230230
231231``` json
232232{
233233 "funding" : {
234234 "type" : " individual" ,
235235 "url" : " http://example.com/donate"
236- },
236+ }
237+ }
238+ ```
237239
240+ ``` json
241+ {
238242 "funding" : {
239243 "type" : " patreon" ,
240244 "url" : " https://www.patreon.com/my-account"
241- },
245+ }
246+ }
247+ ```
242248
243- "funding" : " http://example.com/donate" ,
249+ ``` json
250+ {
251+ "funding" : " http://example.com/donate"
252+ }
253+ ```
244254
255+ ``` json
256+ {
245257 "funding" : [
246258 {
247259 "type" : " individual" ,
@@ -258,7 +270,7 @@ string URL, or an array of these:
258270
259271Users can use the ` npm fund ` subcommand to list the ` funding ` URLs of all
260272dependencies of their project, direct and indirect. A shortcut to visit
261- each funding url is also available when providing the project name such as:
273+ each funding URL is also available when providing the project name such as:
262274` npm fund <projectname> ` (when there are multiple URLs, the first one will
263275be visited)
264276
You can’t perform that action at this time.
0 commit comments