Project template for a Bun library
Create a new Bun project using this as a template:
bun create @flowscripter/template-bun-library
Add the module:
bun add @flowscripter/template-bun-library
Use the module:
import { world } from "@flowscripter/template-bun-library";
world();
Install dependencies:
bun install
Test:
bun test
NOTE: The following tasks use Deno as it excels at these and Bun does not currently provide such functionality:
Format:
deno fmt
Lint:
deno lint index.ts src/ tests/
Generate HTML API Documentation:
deno doc --html --name=template-bun-library index.ts
Sample mermaid diagram to test rendering in markdown:
classDiagram
Foo <|-- Bar
Link to auto-generated API docs:
MIT © Flowscripter