code: function getNpmAuditOptions(options) {
      try {
          const auditOptionsFile = pathJoin(
              options.directoryToAudit,
              'audit.opts'
          );
          const content = readFile(auditOptionsFile).toString();
  
          return content
              .split(/\n|\r/)
              .filter((commandLineOption) =>
                  commandLineOption.includes('--audit-level')
              )
              .map((commandLineOption) => commandLineOption.replace(/[\t]/g, ' '))
              .map((commandLineOption) => commandLineOption.trim())
              .reduce(
                  (result, commandLineOption) => {
                      const keyValue = getNpmAuditOptionFrom(commandLineOption);
                      if (keyValue.key) {
                          result[keyValue.key] = keyValue.value;
                      }
                      enforceValidValueForAuditLevelIn(result);
                      return result;
                  },
                  { '--audit-level': 'low' }
              );
      } catch (error) {
          return defaultNpmAuditOptions;
      }
  }
docs: Get all command-line options defined in the audit.opts file.
  This method is for the moment restricted to read the --audit-level option only
  @param {DefaultOptions} options - default options of this module
  @returns {NpmAuditOptions}