const outboard = require("outboard");
const { read } = require("./internal/input");

async function lint(input, options = {}) {
  const source = read(input);
  return outboard.lint(source, options);
}

function load(input, options = {}) {
  const source = read(input);
  return outboard.load(source, options, true);
}

module.exports = {
  parse: outboard.parse,
  validate: outboard.validate,

  read,
  load,
  lint
};

@@ -312,16 +312,139 @@
 ue);%0A%7D%0A%0A
+function loadLoose(input, options = %7B%7D) %7B%0A  const source = read(input);%0A  return outboard.load(source, options, false);%0A%7D%0A%0A
 module.e
@@ -527,16 +527,29 @@
   load,%0A
+  loadLoose,%0A
   lint%0A%7D

add load loose