JavaScript utilities to LGBTize anything. https://www.npmjs.com/package/lgbt
Find a file
2026-01-02 12:18:02 +01:00
.vscode Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
.gitignore Update to Bun 2026-01-02 11:47:22 +01:00
.prettierrc Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
bun.lock Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
index.ts Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
jsr.json Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
LICENSE Update to Bun 2026-01-02 11:47:22 +01:00
old-mudila.avif Update to Bun 2026-01-02 11:47:22 +01:00
package.json Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
README.md Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
test.ts Run conversion operations in parallel 2026-01-02 12:18:02 +01:00
tsconfig.json Run conversion operations in parallel 2026-01-02 12:18:02 +01:00

LGBT

Old mudila

Bun utilities to LGBTize anything. Node.js is not supported. Deno is not supported.

Check out Telegram bot that paints pictures to LGBT flag.

lgbt(image: Uint8Array | ArrayBuffer | Blob): Promise<Uint8Array>

Uses ImageMagick's hue shifting under the hood. magick convert must be installed and available in PATH.

Example with local file:

import { lgbt } from "lgbt";

const heterostink = await Bun.file("normis.png").bytes();
const gayslay = await lgbt(heterostink);
await Bun.write("lgbtized.png", gayslay);

Example with remote file:

import { lgbt } from "lgbt";

const bun = await fetch("https://bun.sh/logo.svg").then((res) =>
	res.arrayBuffer(),
);
const epicbun = await lgbt(bun);
await Bun.write("epicbunlogo.png", epicbun);

lgbtPhrase(phrase: string): string

Insert rainbow flags AND other lgbt-ish things πŸ’…πŸΌπŸ³οΈβ€πŸŒˆ

Example:

import { lgbtPhrase } from "lgbt";

const newPhrase = lgbtPhrase("I am 100% Straight and I am not gay.");
console.log(newPhrase); // I 🌈 am 🌈 100% πŸ’…πŸΌ Straight πŸ³οΈβ€πŸŒˆ and πŸ³οΈβ€βš§οΈ I πŸ³οΈβ€βš§οΈ am πŸ’…πŸΌ not 🌈 gay. πŸ’…πŸΌ

License

MIT

Donate

hloth.dev/donate