# bun

- Page: https://shared.btbytes.com/p/bun
- Date: 2023-08-24
- Tags: typescript, javascript, bun

[bun](https://bun.sh) is a JavaScript runtime.

Run run a `.js` or a `.ts` script:

```typescript
//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!](https://blog.otterlord.dev/posts/hello-from-bun/) <q> how I now publish my static Astro blog to Cloudflare Pages using Bun.</q>
