Skip to content

The interfaces and helper function needed to get you started in creating your own "builder api" for vite-plugin-md

Notifications You must be signed in to change notification settings

yankeeinlondon/builder-api

Repository files navigation

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()

About

The interfaces and helper function needed to get you started in creating your own "builder api" for vite-plugin-md

Resources

Stars

Watchers

Forks

Packages

No packages published