https://github.com/131/discify
A browserify plugin to analyse bundle statistics
https://github.com/131/discify
Last synced: about 1 year ago
JSON representation
A browserify plugin to analyse bundle statistics
- Host: GitHub
- URL: https://github.com/131/discify
- Owner: 131
- License: mit
- Created: 2016-09-18T13:41:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T10:26:21.000Z (about 8 years ago)
- Last Synced: 2024-11-03T03:02:28.370Z (over 1 year ago)
- Language: JavaScript
- Size: 202 KB
- Stars: 8
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[discify](https://github.com/131/discify) is a browserify plugin that generatee graph and stats of your bundle. It'a lightweight alternative to [disc](https://github.com/hughsk/disc).
[](https://www.npmjs.com/package/discify)
[](http://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/eslint-plugin-ivs)

# What you'll get
* a /disc/ folder in your project root
* a /disc/index.html standalone, neat, manually crafter repport HTML graph
* a /disc/map.json file with also usefull informations
# API/usage & options
```
npm install --save-dev discify
browserify --node -p discify entry.js
# enjoy your /disc folder (you can specify output folder via -p [ discify --outdir some/other/dir ] )
```
## Advanced pipe
```
var b = browserify({
//opts
});
b.plugin(discify)
b.once('discified', Function.prototype); //this is emitted once discify has done generating maps & stuffs
```
# disc VS discify
* Simplier workflow ; as discify is a plugin, it access live and raw from browserify and does not need a dedicated "useFullPath"
# Credits / related
* [disc](https://github.com/hughsk/disc) : design inspiration
* [browserify](https://github.com/substack/browserify) packaging wizard flow
* [d3](https://d3js.org/) graph library
* [131](https://github.com/131) - Author