u-he-preset-randomizer
Version:
Create random u-he synth presets through randomization and merging of your existing presets.
16 lines • 499 B
JavaScript
import { realpathSync } from 'node:fs';
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
export function isDirectExecution(moduleUrl, executionArg = process.argv[1]) {
if (!executionArg) {
return false;
}
const modulePath = fileURLToPath(moduleUrl);
try {
return realpathSync(executionArg) === realpathSync(modulePath);
}
catch {
return resolve(executionArg) === modulePath;
}
}
//# sourceMappingURL=entrypoint.js.map