vite-plugin-funding
v0.1.0
Published
Creates a virtual module `virtual:funding` exports the results of `npm fund --json`
Readme
vite-plugin-funding
Creates a virtual module virtual:funding exports the results of npm fund --json
Setup
Add the plugin to your vite.config.ts
import { defineConfig } from "vite";
import fundingPlugin from "vite-plugin-funding";
export default defineConfig({
plugins: [
fundingPlugin({
// optionally filter funding types
// types: ["github"]
}),
],
});Then import the module in your app
import funding from "virtual:funding";
console.log("Funding", funding);