Skip to main content
Glama
test-dompurify.js391 B
import DOMPurify from 'dompurify'; import { JSDOM } from 'jsdom'; const dom = new JSDOM('<!DOCTYPE html><body></body>'); const purify = DOMPurify(dom.window); console.log('DOMPurify methods:', Object.getOwnPropertyNames(purify).filter(m => typeof purify[m] === 'function')); console.log('\naddHook exists:', typeof purify.addHook); console.log('sanitize exists:', typeof purify.sanitize);

Latest Blog Posts

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/Narasimhaponnada/mcp-mermiad'

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