INNER CODE UNIT · JavaScript

binaryPath

cerbos/cerbos · hack/tools/generate-npm-packages/templates/wrapper/index.js:19

const binaryPath = (() => {
  try {
    return require.resolve(binaryPackage);
  } catch (error) {
    throw new Error(`Couldn't find the "${binaryPackage}" package.

Make sure optional dependencies are installed.`, { cause: error });
  }
})();

function run(...args) {
  execFileSync(binaryPath, args, { stdio: "inherit" });
}

module.exports = { binaryPath, run };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…