+18
-6
lines changedFilter options
+18
-6
lines changed 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.
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
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4