Skip to main content
Glama
general-helper.js•1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.last = exports.vd = exports.GeneralHelper = void 0; class GeneralHelper { static arrayify(input) { if (Array.isArray(input)) { return input; } else if (input !== undefined) { return [input]; } else { return []; } } static propertyExists(object, property) { if (!object || typeof object !== 'object') return false; return !!Object.getOwnPropertyDescriptor(object, property); } } exports.GeneralHelper = GeneralHelper; const vd = (v, keys) => { if (keys && typeof v === 'object') { v = Object.keys(v); } console.log('--------- [pptx-automizer] ---------'); // @ts-ignore console.log(new Error().stack.split('\n')[2].trim()); console.dir(v, { depth: 10 }); }; exports.vd = vd; const last = (arr) => arr[arr.length - 1]; exports.last = last; //# sourceMappingURL=general-helper.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/guangxiangdebizi/PPT-MCP'

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