JavaScript utilities to LGBTize anything.
https://www.npmjs.com/package/lgbt
| .vscode | ||
| .gitignore | ||
| .prettierrc | ||
| bun.lock | ||
| index.ts | ||
| jsr.json | ||
| LICENSE | ||
| old-mudila.avif | ||
| package.json | ||
| README.md | ||
| test.ts | ||
| tsconfig.json | ||
LGBT
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. π
πΌ
