title | description | tags | brief | ||||
---|---|---|---|---|---|---|---|
npm fund |
new subcommand and metadata standard |
|
The npm CLI now has a standard way to bring funding calls to action to the attention of users. |
As of version 6.13.0 of the npm command-line interface, package developers can now include information about how to help fund their projects in package.json
:
{
"funding": {
"type": "individual",
"url": "https://marijnhaverbeke.nl/fund/"
}
}
Or:
{
"funding": {
"type": "patreon",
"url": "https://patreon.com/feross"
}
}
By default, when users run npm install
to install dependencies, the npm CLI will notify them that some installed packages have funding data and prompt the user to run npm fund
.
npm fund
can print reports of funding data in JSON with --json
and open links in the browser with --browser
.