mirror of
				https://github.com/pagefaultgames/pokerogue.git
				synced 2025-10-31 16:35:52 +01:00 
			
		
		
		
	* add dependency cruiser and fix all default errors * create svg render of dependencies in command * move configs to ts files, await font loading * fix i18n * fix dependencies... * fix typedoc generation and tsconfig exclusions * revert github-pages fix for another pr * no-circular -> no-circular-at-runtime for type imports (future)
		
			
				
	
	
		
			13 lines
		
	
	
		
			309 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			309 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { Graphviz } from "@hpcc-js/wasm/graphviz";
 | |
| 
 | |
| const graphviz = await Graphviz.load();
 | |
| 
 | |
| const inputFile = [];
 | |
| for await (const chunk of process.stdin) {
 | |
|   inputFile.push(chunk);
 | |
| }
 | |
| 
 | |
| const file = Buffer.concat(inputFile).toString("utf-8");
 | |
| 
 | |
| const svg = graphviz.dot(file, "svg");
 | |
| process.stdout.write(svg); |