libnpmfund

Programmatic API for npm fund to inspect package funding information

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Programmatic API for npm fund

Examples

check which npm packages have funding available$ node -e "const fund = require('libnpmfund'); fund({}).then(f => console.log(f))"
find funding details for a specific package$ node -e "const fund = require('libnpmfund'); fund({name: 'express'}).then(f => console.log(f))"
get funding information from package.json in current directory$ node -e "const fund = require('libnpmfund'); fund(require('./package.json')).then(f => console.log(f))"
list all funding URLs in a project's dependencies$ node -e "const fund = require('libnpmfund'); fund({}).then(f => Object.entries(f).forEach(([k,v]) => console.log(k, v.funding)))"