0.0.3 • Published 10 years ago

ng-directive-parser v0.0.3

Weekly downloads
17
License
MIT
Repository
github
Last release
10 years ago

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.