mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	
		
			
	
	
		
			7 lines
		
	
	
		
			367 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			7 lines
		
	
	
		
			367 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|   | const fs = require('fs'); | ||
|  | const path = require('path'); | ||
|  | const protocolDir = path.join(__dirname, './checkout/Source/JavaScriptCore/inspector/protocol'); | ||
|  | const files = fs.readdirSync(protocolDir).filter(f => f.endsWith('.json')).map(f => path.join(protocolDir, f)); | ||
|  | const json = files.map(file => JSON.parse(fs.readFileSync(file))); | ||
|  | console.log(JSON.stringify(json)); |