analyze-it
Get full analysis of your project
Last updated a year ago by tanmoyopenroot .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install analyze-it -g
SYNC missed versions from official npm registry.

Analyze It

Get full analysis of your project. Visualize size of files with an interactive zoomable treemap and sunbrust.

treemap sunbrust

Prerequisites

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

Installation and Usage

npm install -g analyze-it

Example

Dependency graph for path 'src' in the project folder

analyze-it

Output

{
	"name": "src - size(616.04 KB)",
	"children": [
		{ "name": "Tree.js - size(2.891 KB)", "value": 0.1, "size": 2.891 },
		{ "name": "index.js - size(0.542 KB)", "value": 0.1, "size": 0.542 },
		{
			"name": "server - size(44.737 KB)",
			"children": [
				{ "name": "app.js - size(0.923 KB)", "value": 0.1, "size": 0.923 },
				{
					"name": "data - size(27.536 KB)",
					"children": [ { "name": "bundle-analysis.json - size(27.536 KB)", "value": 0.1, "size": 27.536 } ],
					"size": 27.536
				},
				{ "name": "index.js - size(1.504KB)", "value": 0.1, "size": 1.504 },
				{
					"name": "public - size(14.112 KB)",
					"children": [
						{ "name": "images - size(0 KB)", "size": 0 },
						{
							"name": "javascripts - size(13.43 KB)",
							"children": [
								{ "name": "script.js - size(0.106 KB)", "value": 0.1, "size": 0.106 },
								{ "name": "sunbrust.js - size(1.828 KB)", "value": 0.1, "size": 1.828 },
								{ "name": "treemap.js - size(11.496 KB)", "value": 0.1, "size": 11.496 }
							],
							"size": 13.43
						},
						{
							"name": "stylesheets - size(0.682 KB)",
							"children": [ { "name": "style.css - size(0.682 KB)", "value": 0.1, "size": 0.682 } ],
							"size": 0.682
						}
					],
					"size": 14.112
				},
				.....
				.....
				.....

Ignore files or directories

Add --ignore for ignoring files or folder

analyze-it --ignore file1.ext,file1.txt,folder1,folder2
analyze-it --ignore node_modules

picture

Add --ignore-hidden for ignoring hidden files

analyze-it --ignore node_modules --ignore-hidden

picture

Current Tags

  • 1.2.0                                ...           latest (a year ago)

6 Versions

  • 1.2.0                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |