bun-windows-via-docker

1.0.1 • Public • Published

Bun for Windows via Docker Desktop

A temporary solution for running Bun on Windows. In case you don't have WSL or don't want to use it.

Mainly for development purpose. Not recommended for production.

Installation

Required tools:

npm install bun-windows-via-docker -g

Usage

  1. Make sure Docker Desktop is running.

  2. Use like a regular Bun CLI, example:

    bun index.ts
  3. Since Bun needs to access your current directory, you have to click Share it.

Expose Ports

Since eventually Bun will be running inside a Docker container, you need to expose ports to access it. --windows-ports is a special argument for this.

    bun --windows-ports "3000,3001" index.ts

Readme

Keywords

none

Package Sidebar

Install

npm i bun-windows-via-docker

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.13 kB

Total Files

6

Last publish

Collaborators

  • louislam