Get all public packages in the npm registry
const baseUrl = ‘https://replicate.npmjs.com/_all_docs’; const outputFile = ‘npm_packages_metadata_7.json’; const pageSize = 1000; const maxRetries = 3; const retryDelay = 5000; // Delay in milliseconds (5 seconds) let hasMore = true; let lastDocId = ”; function delay(ms: number) { return new Promise(resolve => setTimeout(resolve, ms)); } async function fetchPage(startkey: string | null, outputFile: string, retryCount = […]