UNPKG

nefertiti-node

Version:

ES module to work with Nefertiti crypto trade bot.

24 lines (20 loc) 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = updateNef; var _child_process = require("child_process"); var _variables = require("./variables.js"); /** * @function updateNef * @description Update the Nefertiti binary to the latest version * @returns {string} - the results of the update, including version */ function updateNef() { try { const stdout = (0, _child_process.execFileSync)(_variables.executable, ['update']); return stdout.toString(); } catch (err) { throw new Error(`Error: ${err}`); } }