Uploaded July 2025 | Updated November 2026, 17 hours ago
Deno 2.4 introduces importing bytes and text files, allowing you to include image files in your module graph. Learn more from the Deno 2.4 release notes: deno.com/blog/v2.4#importing-text-and-bytes
00:00 Intro
00:11 Previous hack of converting png to base64 string
00:45 New approach using images with byte imports
01:40 The git diff of both approaches
Resources:
- Building Flappybird in Deno youtube.com/watch?v=5wlZDw942J8
- Flappybird, github.com/littledivy/flappybird
- deno compile documentation: https://docs.deno.com/runtime/referen...
- git diff before and after using bytes import: github.com/littledivy/flappybird/commit/aca98682b9560e2799ef45aa7025c4eb373fa513
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Bluesky: https://bsky.app/profile/deno.land
Mastodon: fosstodon.org/@deno_land
Twitter: https:/twitter.com/deno_land
Deno 2.4 introduces importing bytes and text files, allowing you to include image files in your module graph. Learn more from the Deno 2.4 release notes: deno.com/blog/v2.4#importing-text-and-bytes
00:00 Intro
00:11 Previous hack of converting png to base64 string
00:45 New approach using images with byte imports
01:40 The git diff of both approaches
Resources:
- Building Flappybird in Deno youtube.com/watch?v=5wlZDw942J8
- Flappybird, github.com/littledivy/flappybird
- deno compile documentation: https://docs.deno.com/runtime/referen...
- git diff before and after using bytes import: github.com/littledivy/flappybird/commit/aca98682b9560e2799ef45aa7025c4eb373fa513
Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.
Website: deno.com
GitHub: github.com/denoland
Discord: discord.gg/deno
Bluesky: https://bsky.app/profile/deno.land
Mastodon: fosstodon.org/@deno_land
Twitter: https:/twitter.com/deno_land










