node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

ng-directive-parser

ng-directive-parser Build Status

Extracts angular directive information from source

Getting Started

Install the module with: npm install ng-directive-parser

var ng-directive-parser = require('ng-directive-parser');
var directives = ngDirectiveParser.parseFile('directives.js');
 
/* Result:
 [{ filename: 'directives.js',
    name: 'demoDirective',
    restrict: { A: true, E: true } 
 }];
 */
 

Install with cli command

$ npm install ng-directive-parser

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2014 Jan Nicklas
Licensed under the MIT license.