ng-directive-parser

0.0.3 • Public • Published

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.

Package Sidebar

Install

npm i ng-directive-parser

Weekly Downloads

7

Version

0.0.3

License

MIT

Last publish

Collaborators

  • jantimon