UNPKG

nefertiti-node

Version:

ES module to work with Nefertiti crypto trade bot.

18 lines (15 loc) 453 B
import { execFileSync } from 'child_process'; import { executable } from './variables.js'; /** * @function updateNef * @description Update the Nefertiti binary to the latest version * @returns {string} - the results of the update, including version */ export default function updateNef() { try { const stdout = execFileSync(executable, ['update']); return stdout.toString(); } catch (err) { throw new Error(`Error: ${err}`); } }