forked from sheetjs/docs.sheetjs.com
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			510 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			510 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # https://docs.sheetjs.com/docs/demos/net/dom#happydom
 | |
| 
 | |
| cd /tmp
 | |
| rm -rf sheetjs-happydom
 | |
| mkdir sheetjs-happydom
 | |
| cd sheetjs-happydom
 | |
| 
 | |
| npm i --save https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz
 | |
| 
 | |
| curl -LO https://docs.sheetjs.com/dom/SheetJSHappyDOM.js
 | |
| curl -LO https://docs.sheetjs.com/dom/SheetJSTable.html
 | |
| 
 | |
| for n in {2..14}; do
 | |
|   rm -f SheetJSHappyDOM.xlsx
 | |
|   npm i --save happy-dom@$n
 | |
|   npm ls | grep happy-dom
 | |
|   node SheetJSHappyDOM.js
 | |
|   npx -y xlsx-cli SheetJSHappyDOM.xlsx | head -n 3
 | |
| done
 |