emptygif
Language: English

All languages and frameworks

Bun one-liner JavaScript

A JavaScript snippet for Bun one-liner that answers requests for /pixel.gif with the empty GIF, decoded once at startup.

Bun one-liner JavaScript

File
pixel.sh
bun -e "await Bun.write('pixel.gif', Buffer.from('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==', 'base64'))"

We ran this snippet and compared the bytes it returned.

Official site: Bun one-liner

More in JavaScript