@@ -225,23 +225,35 @@ npm also sets a top-level "maintainers" field with your npm user info.
225
225
### funding
226
226
227
227
You 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 :
230
230
231
231
``` json
232
232
{
233
233
"funding" : {
234
234
"type" : " individual" ,
235
235
"url" : " http://example.com/donate"
236
- },
236
+ }
237
+ }
238
+ ```
237
239
240
+ ``` json
241
+ {
238
242
"funding" : {
239
243
"type" : " patreon" ,
240
244
"url" : " https://www.patreon.com/my-account"
241
- },
245
+ }
246
+ }
247
+ ```
242
248
243
- "funding" : " http://example.com/donate" ,
249
+ ``` json
250
+ {
251
+ "funding" : " http://example.com/donate"
252
+ }
253
+ ```
244
254
255
+ ``` json
256
+ {
245
257
"funding" : [
246
258
{
247
259
"type" : " individual" ,
@@ -258,7 +270,7 @@ string URL, or an array of these:
258
270
259
271
Users can use the ` npm fund ` subcommand to list the ` funding ` URLs of all
260
272
dependencies 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:
262
274
` npm fund <projectname> ` (when there are multiple URLs, the first one will
263
275
be visited)
264
276
@@ -506,7 +518,7 @@ Do it like this:
506
518
{
507
519
"repository" : {
508
520
"type" : " git" ,
509
- "url" : " https://github.com/npm/cli.git"
521
+ "url" : " git+ https://github.com/npm/cli.git"
510
522
}
511
523
}
512
524
```
@@ -541,8 +553,8 @@ which it lives:
541
553
{
542
554
"repository" : {
543
555
"type" : " git" ,
544
- "url" : " https://github.com/facebook/react .git" ,
545
- "directory" : " packages/react-dom "
556
+ "url" : " git+ https://github.com/npm/cli .git" ,
557
+ "directory" : " workspaces/libnpmpublish "
546
558
}
547
559
}
548
560
```
0 commit comments