Oddbean new post about | logout
 @Egge I thought I would take it one step further. now there is a vite plugin to let the app access the list of dependencies looking for funding

https://www.npmjs.com/package/vite-plugin-funding

if you add "fundingPlugin({ types: ["lightning"] })" to your vite plugins it will expose a "virtual:funding" module in the app that has a directory of all packages with the "lightning" funding type

nostr:nevent1qvzqqqqqqypzph0s8t9gtt0q88n8gt2mau7lx5klrxws6v0z9wv93eld4pwt8wa7qy88wumn8ghj7mn0wvhxcmmv9uq3qamnwvaz7tm99ehx7uewd3hkctcqyqx4a85rtq3npmmlk5zz9sdf2dlqy7w98qk9j3djck65r5m6vrzl5hg7tnm 
 npmnut is not using vite right now, but this is exactly what I was looking for! I was traversing the package-lock file, but using the npm cli is a lot cleaner! 
 I built it for noStrudel or other web apps that want to pull in the funding info so I don't think npmnut could use it since its not a web app 
 Seems like “npm fund” only picks up projects with http urls in the funding field… maybe I’ll need to parse the tree on my own in the end