ng-sizer

2.1.3 • Public • Published

ng-sizer

Measure the size of your AngularJS module.

Build Status ng-sizer

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));
 

Readme

Keywords

none

Package Sidebar

Install

npm i ng-sizer

Weekly Downloads

5

Version

2.1.3

License

MIT

Unpacked Size

230 kB

Total Files

10

Last publish

Collaborators

  • tewson