Created
May 16, 2017 18:50
-
-
Save davidrleonard/b8083def4af4334e0cbe6af8949b69ae to your computer and use it in GitHub Desktop.
Simple polymer analyzer example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Analyzer, FSUrlLoader} = require('polymer-analyzer'); | |
let analyzer = new Analyzer({ | |
urlLoader: new FSUrlLoader('./'), | |
}); | |
analyzer.analyze(['px-app-nav.html']) | |
.then((document) => { | |
const els = []; | |
for (const element of document.getFeatures({kind: 'element'})) { | |
els.push(element); | |
} | |
console.log(els); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment