@yankeeinlondon/builder-api
v1.4.1
Published
An API used to extend the capabilities of @antfu/vite-plugin-md
Downloads
14,500
Readme
Builder API
This repo exposes everything you'll need to create your own "builder api" for the vite-plugin-md
plugin.
Example
index.ts
import { createBuilder, PipelineStage } from "@yankeeinlondon/builder-api";
export default createBuilder("my_builder", PipelineStage.parser)
.options<{quantity: number}>()
.initializer()
.handler(
// ok, this plugin doesn't do much :)
async (payload, options) => payload
)
.meta()