Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlo-colombo/angular-modules-graph
Project superseeded by https://github.com/lucalanca/angular-architecture-graph
https://github.com/carlo-colombo/angular-modules-graph
Last synced: 2 months ago
JSON representation
Project superseeded by https://github.com/lucalanca/angular-architecture-graph
- Host: GitHub
- URL: https://github.com/carlo-colombo/angular-modules-graph
- Owner: carlo-colombo
- License: mit
- Created: 2014-05-30T07:58:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-28T11:27:44.000Z (about 8 years ago)
- Last Synced: 2024-08-11T00:28:36.567Z (5 months ago)
- Language: JavaScript
- Homepage: https://github.com/lucalanca/angular-architecture-graph
- Size: 278 KB
- Stars: 2
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dismissed project, use instead https://github.com/lucalanca/angular-architecture-graph
angular-modules-graph
=====================Create a graph of angular module definitions, extracted from [grunt-angular-modules-graph](https://github.com/carlo-colombo/grunt-angular-modules-graph)
```js
var scripts = [
{
id: 'file1.js',
text: "angular.module('TestModule',[])"
},
{ ... }
]var angularModulesGraph = require('angular-modules-graph')
var res = angularModulesGraph(scripts)
res.angular // fake angular containig graph
res.angular.modulesNames == ['TestModule' , ...] //list of modules name found
res.angular.modules // modules found
res.angular.modules[0].name == 'TestModule' //module name
res.angular.modules[0].items //untyped array of defined items (controllers, filters, provider, services, ...)
res.angular.modules[0].modules //array of module dependenciesres.results // array of objects indicating if script evaluation resulted without error
res.results[0].id == 'file1.js'
res.results[0].error == false // true if an error occured during evalution
res.results[0].exception == undefined // exception launched during evaluation```