forked from sheetjs/docs.sheetjs.com
		
	
		
			
	
	
		
			21 lines
		
	
	
		
			461 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			461 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								# https://docs.sheetjs.com/docs/demos/engines/goja
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								cd /tmp
							 | 
						||
| 
								 | 
							
								rm -rf SheetGoja
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								mkdir SheetGoja
							 | 
						||
| 
								 | 
							
								cd SheetGoja
							 | 
						||
| 
								 | 
							
								go mod init SheetGoja
							 | 
						||
| 
								 | 
							
								go get github.com/dop251/goja
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/shim.min.js
							 | 
						||
| 
								 | 
							
								curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js
							 | 
						||
| 
								 | 
							
								curl -LO https://sheetjs.com/pres.numbers
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								curl -LO https://docs.sheetjs.com/goja/SheetGoja.go
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								go build SheetGoja.go
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								./SheetGoja pres.numbers
							 |