Files
bun.sh/docs/runtime/bun-apis.md
Jarred Sumner d8be3e51b4 Support glob.scan(string) (#7279)
* Support `glob.scan(string)`

* Create glob.md

* Update glob.md

* fixup

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-11-22 16:12:28 -08:00

2.9 KiB

Bun implements a set of native APIs on the Bun global object and through a number of built-in modules. These APIs are heavily optimized and represent the canonical "Bun-native" way to implement some common functionality.

Bun strives to implement standard Web APIs wherever possible. Bun introduces new APIs primarily for server-side tasks where no standard exists, such as file I/O and starting an HTTP server. In these cases, Bun's approach still builds atop standard APIs like Blob, URL, and Request.

Bun.serve({
  fetch(req: Request) {
    return new Response("Success!");
  },
});

Click the link in the right column to jump to the associated documentation.

{% table %}

  • Topic
  • APIs
















{% /table %}