#!/usr/bin/env node const { exec } = require("child_process"); exec("herco", (error, stdout, stderr) => { stdout && console.log(stdout); stderr && console.log(stderr); if (error !== null) { console.log(`exec error: ${error}`); } });