How to use js-beautify

Comprehensive js-beautify code examples:

How to use js-beautify.html:

474
475
476
477
478
479
480
481
482
 * @return {String} HTML string.
 */
render () {
  let page = this.page.render();
  let html = this._loadHTML(page);
  let pretty = beautify.html(html, {
    indent_size: 2,
    extra_liners: []
  });