New Paste

 

Recent Pastes

Administrate




Pastebin on paste.luisaranguren.com

PasteID: v0
Pasted by Anonymous, 2025-03-05 13:18:20 GMT
Expires Never
Paste size 444 b
Tools Raw   Download
 
  1. const readline = require('readline');  
  2. const fs = require('fs');  
  3.   
  4. const rl = readline.createInterface({  
  5.     input: process.stdin,  
  6.     output: process.stdout  
  7. });  
  8.   
  9. rl.question('What is the path of the macaroon file you wish to use with Zeus? ', (macaroonPath) => {  
  10.     const macaroonHex = fs.readFileSync(macaroonPath).toString('hex');  
  11.   
  12.     console.log(`Your hex-formatted macaroon is: ${macaroonHex }`);  
  13.   
  14.     rl.close();  
  15. }); 

 
 

 
 
 
 
 
Written by Xan Manning, 2010.