Skip to content

VityaSchel/lgbtize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Contributors