Skip to main content
Glama
getJSXPragmaInfo.js589 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function getJSXPragmaInfo(options) { const [base, suffix] = splitPragma(options.jsxPragma || "React.createElement"); const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || "React.Fragment"); return {base, suffix, fragmentBase, fragmentSuffix}; } exports.default = getJSXPragmaInfo; function splitPragma(pragma) { let dotIndex = pragma.indexOf("."); if (dotIndex === -1) { dotIndex = pragma.length; } return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)]; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MatheusgVentura/Project-One'

If you have feedback or need assistance with the MCP directory API, please join our Discord server