This is me following Brad Traversy's youtube video
Year 2023
Init bun app
bun init
Run .ts file
bun run index.ts
Run .ts file in watch mode
bun --watch index.ts
Run .ts file in hot mode
bun --hot index.ts
There is bunx the the there is npx
bunx cowsay Hello Bun
Run tests
bunx test
Run build
bun build ./src/index.ts --outfile=./dist/bundle.js
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using bun init
in bun v1.0.4. Bun is a fast all-in-one JavaScript runtime.