This is an attempt to create a SDL2 binding for Bun, and it's my first time using FFI, so please, don't judge me!
See this example in index.ts
- Install Bun
- Install the SDL2 development library
sudo apt install libsdl2-dev
To install dependencies:
git clone git@github.com:Pacheco95/bun-sdl2-binding.git
cd bun-sdl2-binding
bun install
To run the example above:
bun run index.ts
To run tests
bun test --coverage
This project was created using bun init
in bun v1.0.7. Bun is a fast all-in-one JavaScript runtime.