Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Latest commit

 

History

History
37 lines (26 loc) · 1.1 KB

File metadata and controls

37 lines (26 loc) · 1.1 KB

#ngrequire

Build Status Coverage Status Dependency Status

A utility to analyse angular dependencies

#Usage

##update(moduleSourceBase);

  • moduleSourceBase: Glob-like file path array. Should contains all your angular modules, providers etc..
return {
  success: ['successed file list'],
  skipped: ['skipped file list (due to caching)']
}

##getMeta(path);

  • path: Get file meta for given path
return {
  moduleName: 'Name of the angular module',
  loadedFiles: ['List of required file (if using commonjs way)'],
  injectedProviders: ['Provider list being injected'],
  dependencies: ['Module dependencies'],
  namedProviders: ['All provider names defeind in this module (factory, service etc)'],
  providerTypes: ['All provider types defined in this module']
}