mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 23:43:09 +01:00
19 lines
312 B
JavaScript
19 lines
312 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const { getOptions } = internalBinding('options');
|
||
|
const { options, aliases } = getOptions();
|
||
|
|
||
|
function getOptionValue(option) {
|
||
|
const result = options.get(option);
|
||
|
if (!result) {
|
||
|
return undefined;
|
||
|
}
|
||
|
return result.value;
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
options,
|
||
|
aliases,
|
||
|
getOptionValue
|
||
|
};
|