UNPKG

wp-styler-ai

Version:

Generate WordPress theme.json color palettes from images using AI-powered OCR through the OpenRouter API and Gemini Flash 2.0.

12 lines (11 loc) 342 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../src/index"); async function main() { let json = await (0, index_1.ocr)({ filePath: "./test/color-palette.png", apiKey: process.env.OPENROUTER_API_KEY, }); console.log(JSON.stringify(json, null, 2)); } main();