- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
File I/O and EASY Image Conversion | Beginner's Guide to Bun #5
Hey everyone, I'm Average. In this episode of "Beginner's Guide to Bun" we check out Bun's native implementation for reading and writing files to our local filesystem.
We also look at implementing our own easy JPEG to PNG conversion route using a library called Sharp. Using Bun's I/O and Sharp for conversion, we successfully create an endpoint that can convert most images to PNG in seconds.
Thanks for watching!
Bun File IO: https://bun.com/docs/runtime/file-io#reading-files-bun-file
Sharp npm package: https://www.npmjs.com/package/sharp
Bun Website: https://bun.com
[00:00] - Intro & Project Overview
[00:34] - Installing Sharp
[00:48] - Setting Up the File System
[01:31] - Handling the Upload Request
[02:33] - Generating a Unique File Path
[03:47] - Saving the Image with Bun
[04:02] - Returning the File to the User
[04:58] - Testing the API with Bruno
[06:00] - Fixing the File Download Name
[06:31] - Outro
Видео File I/O and EASY Image Conversion | Beginner's Guide to Bun #5 канала Average
We also look at implementing our own easy JPEG to PNG conversion route using a library called Sharp. Using Bun's I/O and Sharp for conversion, we successfully create an endpoint that can convert most images to PNG in seconds.
Thanks for watching!
Bun File IO: https://bun.com/docs/runtime/file-io#reading-files-bun-file
Sharp npm package: https://www.npmjs.com/package/sharp
Bun Website: https://bun.com
[00:00] - Intro & Project Overview
[00:34] - Installing Sharp
[00:48] - Setting Up the File System
[01:31] - Handling the Upload Request
[02:33] - Generating a Unique File Path
[03:47] - Saving the Image with Bun
[04:02] - Returning the File to the User
[04:58] - Testing the API with Bruno
[06:00] - Fixing the File Download Name
[06:31] - Outro
Видео File I/O and EASY Image Conversion | Beginner's Guide to Bun #5 канала Average
Bun Bun.js Bun tutorial Bun File IO Bun.file Bun.write Bun beginner guide JavaScript runtime TypeScript tutorial Sharp npm Image conversion tutorial JPEG to PNG JavaScript Bun vs Node.js FileSystem API Web development 2026 Backend development Bun server tutorial How to use Sharp with Bun Reading files in Bun Writing files in Bun Average Bun tutorial
Комментарии отсутствуют
Информация о видео
12 мая 2026 г. 18:00:31
00:07:10
Другие видео канала








![[Minecraft 250+ Modpack] Becoming a philosopher - Part 3](https://i.ytimg.com/vi/Aanh3rUMz8g/default.jpg)










![[The 60+ Modpack] TERRARIA PLAYTHROUGH - Part 2](https://i.ytimg.com/vi/WFNwlzy3agA/default.jpg)
![[Minecraft 250+ Modpack] Journey to the Aether! - Part 7](https://i.ytimg.com/vi/m-VB2nwTCA8/default.jpg)
