कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

regex-visualizer

pipedream941 द्वारा

Web & Frontend Development
302clawskills.sh द्वारा बताए गए डाउनलोड
2स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Render Regulex-style railroad diagrams for a JavaScript regular expression and export the exact same SVG/PNG.

विवरण

यह स्किल क्या करती है

Exports railroad diagram visualizations for JavaScript regular expressions as SVG and PNG files. Uses the Regulex-Plus web UI rendering engine via headless browser, so output matches the web UI exactly rather than a re-implemented diagram. Supports flags i, m, and g.

Output matches the Regulex-Plus web UI exactly because it reuses the same export logic, avoiding visual discrepancies that come from custom re-implementations.

इसे कब इस्तेमाल करें

  • Generating regex diagrams for technical documentation
  • Sharing visual regex breakdowns with teammates
  • Debugging complex regular expressions visually
  • Embedding regex diagrams in README or wiki pages
  • Archiving regex patterns as images for presentations

उदाहरण वर्कफ़्लो

इनपुट

User asks: Generate a railroad diagram for the regex ^(a|b)*?$ with flag i

एजेंट
  1. 1

    Runs render.mjs with --re '^(a|b)*?$' and --flags 'i' and an output path

  2. 2

    Loads regulex.html in a headless browser via puppeteer-core

  3. 3

    Triggers the built-in cmd=export mode to capture the canvas and SVG element

  4. 4

    Writes the SVG and PNG files to the specified output path

आउटपुट

SVG and PNG files of the railroad diagram matching the Regulex-Plus web UI export

इंस्टॉलेशन

clawhub install pipedream941/regex-visualizer

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक