MCPcopy Index your code
hub / github.com/cporter202/API-mega-list / saveToJSON

Function saveToJSON

settings/fetch_apify_actors.js:139–143  ·  view source on GitHub ↗

* Save actors data to JSON file

(actors, filename = 'apify_actors.json')

Source from the content-addressed store, hash-verified

137 * Save actors data to JSON file
138 */
139function saveToJSON(actors, filename = 'apify_actors.json') {
140 const filePath = path.join(__dirname, '..', filename);
141 fs.writeFileSync(filePath, JSON.stringify(actors, null, 2), 'utf-8');
142 console.log(`Saved ${actors.length} actors to ${filename}`);
143}
144
145/**
146 * Generate a markdown file with all actors and affiliate links

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected