parcoursup/node_modules/node-preload/process-node-options.js

17 lines
364 B
JavaScript
Raw Normal View History

2023-03-05 13:23:23 +01:00
'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;