parcoursup/node_modules/node-preload/process-node-options.js
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

17 lines
364 B
JavaScript

'use strict';
const {generateRequire} = require('./generate-require.js');
function processNodeOptions(value) {
const requireSelf = generateRequire(require.resolve('./preload-path/node-preload.js'));
/* istanbul ignore else */
if (!value.includes(requireSelf)) {
value = `${value} ${requireSelf}`;
}
return value;
}
module.exports = processNodeOptions;