ng-sizer
v2.1.3
Published
Measure the size of your AngularJS module.
Downloads
10
Readme
ng-sizer
Measure the size of your AngularJS module.
Usage
After everything is registered in your AngularJS module, simply call ngSizer()
with the module as an argument and check your console.
import ngSizer from 'ng-sizer';
...
const app = angular.module('app', []);
app.controller('HomeCtrl', function () { ... });
app.service('apiService', function () { ... });
/*
* Will log the following object to the console:
*
* {
* controllerCount: 1,
* serviceCount: 1
* }
*
*/
console.log(ngSizer(app));