May 9, 2020
npm Funding Metadata point users to your offer page
npm version 6.13.0 added an npm fund
subcommand for listing funding information about dependencies. To leverage that feature for your L0 npm package, edit package.json
to add a funding
property:
{
"funding": {
"type": "License Zero",
"url": "https://licensezero.com/offers/562c0ffe-df98-4348-87b7-e60e3c37c534"
}
}
users will see a count of packages within funding metadata when they run npm install
, as well as a prompt to run npm fund
.