# lgbt

> LGBTize anything

Latest version **1.1.1** (published 2026-01-02) · 0 weekly downloads

## Install

```sh
npm install lgbt
pnpm add lgbt
yarn add lgbt
bun add lgbt
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2026-01-02 |
| First published | 2023-04-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | vityaschel |

## Links

- npm: https://www.npmjs.com/package/lgbt
- npm.io page: https://npm.io/package/lgbt

## Recent versions

- 1.1.1 (latest) — 2026-01-02
- 1.1.0 — 2026-01-02
- 1.0.8 — 2024-02-10
- 1.0.7 — 2023-05-16
- 1.0.6 — 2023-04-14
- 1.0.5 — 2023-04-13
- 1.0.4 — 2023-04-13
- 1.0.3 — 2023-04-13
- 1.0.2 — 2023-04-13
- 1.0.1 — 2023-04-13
- 1.0.0 — 2023-04-13

## README

# LGBT

![Old mudila](https://git.hloth.dev/hloth/lgbtize/raw/branch/master/old-mudila.avif)

[Bun](https://bun.sh) utilities to LGBTize anything. Node.js is not supported. Deno is not supported.

Check out [Telegram bot](https://git.hloth.dev/VityaSchel/lgbtize/tree/telegram-bot) that paints pictures to LGBT flag.

## lgbt(image: Uint8Array | ArrayBuffer | Blob): Promise&lt;Uint8Array&gt;

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

Example with local file:

```ts
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:

```ts
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:

```ts
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](./LICENSE)

## Donate

[hloth.dev/donate](https://hloth.dev/donate)

---
_Source: https://npm.io/package/lgbt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
