UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

14 lines (13 loc) 376 B
var bs58 = require('bs58') , fs = require('fs') module.exports = function (inFile, options) { var inStream = inFile ? fs.createReadStream(inFile) : process.stdin var chunks = [] inStream.on('data', function (chunk) { chunks.push(chunk) }) inStream.once('end', function () { var buf = Buffer.concat(chunks) process.stdout.write(bs58.encode(buf)) }) }