MCPcopy Create free account
hub / github.com/openai/plugins / readJson

Function readJson

plugins/openai-developers/scripts/openai-platform-api-key.mjs:318–324  ·  view source on GitHub ↗
(filePath, label)

Source from the content-addressed store, hash-verified

316}
317
318function readJson(filePath, label) {
319 try {
320 return JSON.parse(fs.readFileSync(filePath, "utf8"));
321 } catch (error) {
322 fail(`Failed to read ${label}: ${error.message}`);
323 }
324}
325
326function encryptedPayloadFromArgs(args) {
327 if (typeof args.ciphertext === "string") {

Callers 2

encryptedPayloadFromArgsFunction · 0.70
decryptPayloadFunction · 0.70

Calls 1

failFunction · 0.85

Tested by

no test coverage detected