Skip to main content
Glama
utf8.js626 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromUtf8 = exports.toUtf8 = void 0; function toUtf8(str) { return new TextEncoder().encode(str); } exports.toUtf8 = toUtf8; /** * Takes UTF-8 data and decodes it to a string. * * In lossy mode, the replacement character � is used to substitude invalid * encodings. By default lossy mode is off and invalid data will lead to exceptions. */ function fromUtf8(data, lossy = false) { const fatal = !lossy; return new TextDecoder("utf-8", { fatal }).decode(data); } exports.fromUtf8 = fromUtf8; //# sourceMappingURL=utf8.js.map

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/MyronKoch-dev/osmosis-mcp-server'

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