{"library":"polymer-transpiler","title":"polymer-transpiler","description":"Polymer 1 to Polymer 2 transpiler that converts Polymer function-based elements into ES6 class syntax. Current version is 1.1.4-alpha, released as an unstable alpha with frequent breaking changes. It provides a CLI tool to search and transpile components, allowing customization of base class. Differentiators: specific focus on Polymer 1→2 migration, simple CLI usage, but no other major features or community support.","language":"javascript","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["npm install polymer-transpiler"],"cli":{"name":"polymer-transpiler","version":null}},"imports":["import polymerTranspiler from 'polymer-transpiler'","import { transpile } from 'polymer-transpiler'","import PolymerTranspiler from 'polymer-transpiler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import polymerTranspiler from 'polymer-transpiler';\n\n// Example: transpile a single Polymer 1 element file\nconst input = `\n  <dom-module id=\"my-element\">\n    <template><span>{{text}}</span></template>\n    <script>\n      Polymer({\n        is: 'my-element',\n        properties: { text: { type: String } }\n      });\n    </script>\n  </dom-module>\n`;\n\nconst output = polymerTranspiler.transpile(input, { extends: 'Polymer.Element' });\nconsole.log(output);\n// Output will be ES6 class extending Polymer.Element","lang":"typescript","description":"Transpile a Polymer 1 element string to Polymer 2 class syntax","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}