npm.io
1.1.1 • Published 8 months ago

lgbt

Licence
Version
1.1.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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