mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-11-04 01:09:06 +00:00 
			
		
		
		
	
		
			
	
	
		
			8 lines
		
	
	
	
		
			183 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			8 lines
		
	
	
	
		
			183 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								export function encode (o) {
							 | 
						||
| 
								 | 
							
								  return btoa(unescape(encodeURIComponent(JSON.stringify(o))))
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export function decode (s) {
							 | 
						||
| 
								 | 
							
								  return JSON.parse(decodeURIComponent(escape(atob(s))))
							 | 
						||
| 
								 | 
							
								}
							 |