Izixhobo Zokwakha Eziphambili
Ixesha lokuphumeza i JavaScript elipheleleyo. Umqokeleli, umqhubi wovavanyo, nomphathi wepakethi kwisixhobo esikhawulezayo
4x faster startup than Node.js, with significantly faster execution powered by JavaScriptCore engine
Run TypeScript and JSX files directly without compilation step, transpiles on-the-fly
Install npm packages 30x faster than npm with global cache and full compatibility
Bundle JavaScript/TypeScript projects in milliseconds with code splitting, tree shaking, and minification
Fast test runner compatible with Jest API, includes mocking, snapshots, and coverage
Runtime, bundler, transpiler, package manager, and test runner in a single binary
# Install Bun
curl -fsSL https://bun.sh/install | bash
# Verify installation
bun --version
# Update Bun to latest version
bun upgradeQuick Start - Create New Project:# Initialize new project
bun init
# Run TypeScript/JavaScript file
bun run index.ts
# Install dependencies
bun install
# Run with watch mode (hot reload)
bun --watch run index.tsRun Existing Node.js Project:# Install dependencies (much faster than npm)
bun install
# Run with Bun runtime instead of Node
bun run start
# Or use as drop-in Node replacement
bun run dev
{
"scripts": {
"dev": "bun --watch run src/index.ts",
"build": "bun build src/index.ts --outdir dist",
"test": "bun test",
"start": "bun run dist/index.js"
}
}Bundling with Bun:# Bundle for production
bun build ./src/index.ts --outdir ./dist --target browser
# Bundle with minification
bun build ./src/index.ts --outdir ./dist --minify
# Bundle for Node.js target
bun build ./src/index.ts --outdir ./dist --target nodeTesting:# Run all tests
bun test
# Run specific test file
bun test auth.test.ts
# Watch mode
bun test --watch
# With coverage
bun test --coverageEnvironment Variables:.env filesprocess.env or Bun.envQala kwimizuzu ngenkqubo yethu elula yokufaka i-VPS
Deploy in about 2 minutes • Full root access • Support by ticket and email