node/npm module to imitate fs.execSync