https://github.com/pacheco95/bun-sdl2-binding
Bun SDL2 Language Binding
https://github.com/pacheco95/bun-sdl2-binding
Last synced: 4 months ago
JSON representation
Bun SDL2 Language Binding
- Host: GitHub
- URL: https://github.com/pacheco95/bun-sdl2-binding
- Owner: Pacheco95
- License: mit
- Created: 2023-10-28T19:33:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-31T13:06:03.000Z (over 1 year ago)
- Last Synced: 2023-11-01T05:21:10.256Z (over 1 year ago)
- Language: TypeScript
- Size: 80.1 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bun-sdl2-binding
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](index.ts)
---
# Requirements
1. Install [Bun](https://bun.sh/)
2. Install the SDL2 development library
```shell
sudo apt install libsdl2-dev
```# Setup
To install dependencies:
```bash
git clone [email protected]:Pacheco95/bun-sdl2-binding.git
cd bun-sdl2-binding
bun install
```To run the example above:
```bash
bun run index.ts
```To run tests
```bash
bun test --coverage
```This project was created using `bun init` in bun v1.0.7. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.