Check if a binary is working in Node.js by checking its exit code