Skip to content

Bun is an all-in-one JavaScript and TypeScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.

License

Notifications You must be signed in to change notification settings

scottgriv/bun-code_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Bun Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


Bun Code Demo

Bun is an all-in-one JavaScript and TypeScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.

For example, with only a few lines of code, you can get a HTTP server up and running with Bun:

const server = Bun.serve({
    port: 3000,
    fetch(request) {
      return new Response("Welcome to Bun!");
    },
  });
  
  console.log(`Listening on localhost:${server.port}`);

Table of Contents

Getting Started

  1. Install the Bun CLI globally using npm install -g @bun/bun
  2. Create a new project using bun new my-project
  3. Change directory to the new project using cd my-project
  4. Install dependencies using bun install
  5. Run the project using bun run
  6. Open the project in your favorite editor and start coding!

Resources

License

This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.

  • The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
  • For more details, see the LICENSE file in this repository.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch


About

Bun is an all-in-one JavaScript and TypeScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published