Skip to main content
Glama
toBoolean.js247 B
import assertString from './util/assertString'; export default function toBoolean(str, strict) { assertString(str); if (strict) { return str === '1' || /^true$/i.test(str); } return str !== '0' && !/^false$/i.test(str) && str !== ''; }

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/indrasishbanerjee/aem-mcp-server'

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