Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 945 Bytes

2019-11-26-npm-fund.md

File metadata and controls

37 lines (30 loc) · 945 Bytes
title description tags brief
npm fund
new subcommand and metadata standard
Funding
Open Source
Funding
npm
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.