Skip to main content
Glama
by microsoft
base64.test.ts530 B
import { describe, test } from "node:test" import assert from "node:assert/strict" import { fromBase64, toBase64 } from "./base64" describe("Base64", async () => { const testString = "Hello World!" const testBase64 = "SGVsbG8gV29ybGQh" await test("toBase64 encodes string to base64", () => { const result = toBase64(testString) assert.equal(result, testBase64) }) await test("fromBase64 throws on invalid base64", () => { assert.throws(() => fromBase64("invalid base64!")) }) })

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/microsoft/genaiscript'

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