npm fundnew subcommand and metadata standard
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
.
Your thoughts and feedback are always welcome by e-mail.