@rebimboca/image
v0.2.0
Published
Image utilities — placeholder generation and manipulation helpers.
Maintainers
Readme
@rebimboca/image
Pacote com utilitários flexíveis para geração de imagens de placeholder.
Instalação
pnpm add @rebimboca/imageVisão Geral
- 🖼️ Geração dinâmica de imagens customizáveis
Geradores
generateImage(options)
Gera uma imagem de mock para uso temporário. Retorna a URL final que pode ser incorporada a tags de imagem HTML.
Suporta configurações customizadas de dimensão, texto e cor.
{
width: number;
height: number;
text?: string;
background?: string;
color?: string;
}Exemplo Rápido
import { generateImage } from "@rebimboca/image";
const urlImagem = generateImage({
width: 800,
height: 600,
text: "Meu Placeholder",
background: "000000",
color: "ffffff"
});
console.log(urlImagem);