samccone / hydrolysis

A utility for analyzing polymer elements.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hydrolysis

Static anlaysis utilities for polymer.

Install

npm install hydrolysis

Usage

var hyd = require('hydrolysis');

hyd.Analyzer.analyze('path-to-polymer-element.html')
    .then(function(analyzer) {
      console.log(analyzer.elementsByTagName['my-element'])
    });

For more detail, see the API Docs.

Developing

You need wct to run the tests.

Run a one-off build of the project:

npm run build

Or watch the source for changes, and rebuild each time a file is modified:

npm run watch

About

A utility for analyzing polymer elements.

License:Other


Languages

Language:JavaScript 99.0%Language:HTML 1.0%Language:CSS 0.0%