Skip to content

hchiam/learning-bun

Repository files navigation

Learning bun

Just one of the things I'm learning. https://github.com/hchiam/learning

basically bun replaces a bunch of stuff, and runs faster: https://www.youtube.com/watch?v=M4TufsFlv_o

some notable links for the official docs

miscellaneous notes

bun init # like npm init
bun install # instead of npm install
bun run index.ts
bun run --watch index.ts
bun run dev # if you have "dev" set up in "scripts" in package.json
bun test # will automatically run [...].test.tsx files
bunx cowsay -d 'hi' # instead of npx cowsay -d 'hi'
bunx serve . # to serve index.html
open http://localhost:3000/example; bunx serve .
open http://localhost:3000/example; bun ./example.html
# bunx serve . & open http://localhost:3000/example # to serve example.html instead and run it right away in browser
# kill $(lsof -t -i:3000) # to stop port 3000 from being served

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors