How to use pretty-fast - 1 common examples

To help you get started, we’ve selected a few pretty-fast 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 firefox-devtools / debugger / src / workers / pretty-print / worker.js View on Github external
function prettyPrint({ url, indent, sourceText }) {
  const prettified = prettyFast(sourceText, {
    url: url,
    indent: " ".repeat(indent)
  });

  return {
    code: prettified.code,
    mappings: invertMappings(prettified.map._mappings)
  };
}

pretty-fast

A fast JavaScript pretty printer.

BSD-2-Clause
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular pretty-fast functions