Bun

Guides

Utilities

A collection of guides relating to Bun's array of built-in utility functions

Utilities

Hash a password with Bun

View guide

Utilities

Escape an HTML string with Bun

View guide

Utilities

Get the current Bun version

View guide

Utilities

Encode and decode base64 strings with Bun

View guide

Utilities

Check if two objects are deeply equal with Bun

View guide

Utilities

Detect when code is executed with Bun

View guide

Utilities

Get the directory of the current file with Bun

View guide

Utilities

Get the file name of the current file with Bun

View guide

Utilities

Convert a file URL to an absolute path with Bun

View guide

Utilities

Compress and decompress data with gzip with Bun

View guide

Utilities

Convert an absolute path to a file URL with Bun

View guide

Utilities

Get the path to an executable bin file with Bun

View guide

Utilities

Sleep for a fixed number of milliseconds with Bun

View guide

Utilities

Compress and decompress data with DEFLATE with Bun

View guide

Utilities

Get the absolute path of the current file with Bun

View guide

Utilities

Check if the current file is the entrypoint with Bun

View guide

Utilities

Get the absolute path to the current entrypoint with Bun

View guide