How to use the respec/tools/respecDocWriter.fetchAndWrite function in respec

To help you get started, we’ve selected a few respec examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github w3c / spec-generator / generators / respec.js View on Github external
exports.generate = async function generate(url) {
  const opts = { timeout: 30000, disableSandbox: true };
  try {
    console.log("Generating", url);
    const result = await respecWriter(url, "/dev/null", {}, opts);
    return result;
  } catch (err) {
    throw new SpecGeneratorError({ status: 500, message: err.message });
  }
};

respec

A technical specification pre-processor.

W3C
Latest version published 26 days ago

Package Health Score

88 / 100
Full package analysis