Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 870 Bytes

README.md

File metadata and controls

72 lines (45 loc) · 870 Bytes

Bun bun bun

More info: Bun Docs

Tip

just bun can be used as a shorthand for almost all of its commands.

Install

Install all dependencies

bun i

Install a specific package

bun i <package>

Flags

  • -g to install globally
  • -D to install as a dev dependency

Development

bun dev

Build

bun run build

Running

Scripts

bun run <script>

Example: bun lint

Binaries

bunx <binary>

bun run also works

Example: bun eslint

Note

To use the Bun runtime (instead of Node.js), pass --bun to the command: bunx --bun vite dev

Files

bun run <file>

Example: bun src/index.ts

ni

To forget about package managers: antfu/ni