require-native-executable
NodeJS startup check utility that ensures a native executables exists and else fails.
Sync require
We recommend that you place this code in your module after your require()
statements.
const requireNativeExecutableSync = ; // Each of those will throw if the executable is not present;;
The generated error will be a NativeExecutableMissingError
and look like this:
The native executable 'java' was not found on your system but is required to load this application.
Use err.exeName
to get the name of the missing executable
Async require
const requireNativeExecutable = ; // Will;