All files / lib/internal options.js

88.89% Statements 16/18
66.67% Branches 2/3
100% Functions 1/1
88.89% Lines 16/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1995x 95x 95x 95x 95x 12086x 12086x 12086x     12086x 12086x 95x 95x 95x 95x 95x 95x  
'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
};