Bun is a fast all-in-one JavaScript runtime sandbox.
# Install
curl https://bun.sh/install | bash
# create server.js
touch http.js
// http.js
export default {
port: 3000,
fetch(request) {
return new Response("Welcome to Bun!");
},
};
bun run http.js
curl localhost:3000
Welcome to Bun!