here you goThings I’ve made, read and saved — shared here.

Archive

9,612 entries: 54 from X, 8,925 from Pinboard, saved 1998 to 2026.

Browse by tag, site, author, folder or language

Tags

Sites

Authors

Folders

Languages

1 entry#bun ×

2023

bun

bun is a JavaScript runtime.

Run run a .js or a .ts script:

//hello.ts
import markdown from "markdown";

function foo () {
  return markdown.parse('**hello** world');
}

console.log(foo())

First install the deps: $bun install markdown. (Which also installs a binary md2html to where exactly I don't know.)

Run the script:

	$ bun hello.ts
	<p><strong>hello</strong> world</p>

  • Hello from Bun!  how I now publish my static Astro blog to Cloudflare Pages using Bun.

notes#bun#javascript#typescript