Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fedebertolini/html-size-visualizer

Repository files navigation

html-size-visualizer

Description

Simple node app that parses a HTML document and creates a graph representation of the document. Each HTML tag is represented with a node. Each node is colored depending on its sub-tree's estimated size (in characters) using a green-red scale, red for the node with the biggest subtree (always the root <html> tag) and green for the smallest leafs.

The graph is intended to detect possible optimizations by trimming out the biggests sub-trees.

Example: Example

Installation

git clone [email protected]:fedebertolini/html-size-visualizer.git
cd html-size-visualizer
npm install

Usage

To parse a local HTML file:

node index.js --path myFile.html

To parse a website's HTML:

node index.js --url http://www.example.com

About

Visualize an HTML document as a tree and detect the biggest sub-trees

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •