{"id":25964,"library":"mt-wxml-transpiler","title":"MT WXML Transpiler","description":"A forked version of wxml-transpiler (v0.0.4) that converts WXML (WeChat Mini Program template language) into standard HTML/JSX or other formats. It is in early development with no clear release cadence. Differentiators: maintained fork of an otherwise stale upstream. Currently limited documentation; suitable for developers needing WXML transformation in Node.js with a simple spawn/exec interface.","status":"active","version":"0.0.4","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install mt-wxml-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add mt-wxml-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add mt-wxml-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Named export; CJS require will not work as expected because the package does not define a default export for CJS interop.","wrong":"const transpile = require('mt-wxml-transpiler');","symbol":"transpile","correct":"import { transpile } from 'mt-wxml-transpiler';"},{"note":"Named export, not default.","wrong":"import compile from 'mt-wxml-transpiler';","symbol":"compile","correct":"import { compile } from 'mt-wxml-transpiler';"},{"note":"parse is a named export; no default export.","wrong":"const { parse } = require('mt-wxml-transpiler').default;","symbol":"parse","correct":"import { parse } from 'mt-wxml-transpiler';"}],"quickstart":{"code":"import { transpile } from 'mt-wxml-transpiler';\n\nconst inputWxml = `<view>Hello</view>`;\nconst output = transpile(inputWxml, {\n  format: 'html'\n});\nconsole.log(output); // <div>Hello</div>","lang":"typescript","description":"Transpile a simple WXML string to HTML using the `transpile` function with format option."},"warnings":[{"fix":"Refer to wxml-transpiler documentation for API details, but verify behavior with this package.","message":"Package is a fork with minimal changes; rely on original wxml-transpiler docs at your own risk.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider using other tools like wepy or taro for full-featured conversion.","message":"No official support for WeChat Mini Program latest syntax (e.g., custom components, WXS).","severity":"deprecated","affected_versions":"0.0.4"},{"fix":"Use `import` syntax as shown in imports.","message":"The package uses CommonJS internally but expects ESM import; CJS require fails silently.","severity":"gotcha","affected_versions":"0.0.4"}],"env_vars":null,"search_vec":"'cadenc':35 'clear':33 'convert':13 'current':44 'develop':30,49 'differenti':36 'document':46 'earli':29 'fork':5,38 'format':25 'html/jsx':22 'interfac':59 'javascript':60 'languag':19 'limit':45 'maintain':37 'mini':16 'mt':1 'need':50 'node.js':54 'otherwis':41 'program':17 'releas':34 'simpl':57 'spawn/exec':58 'stale':42 'standard':21 'suitabl':47 'templat':18 'transform':52 'transpil':3,10 'upstream':43 'v0.0.4':11 'version':6 'wechat':15 'wxml':2,9,14,51 'wxml-transpil':8","created_at":"2026-05-01T13:47:29.313738+00:00","updated_at":"2026-05-01T13:47:29.313738+00:00","problems":[{"fix":"Ensure you pass a string: transpile('...')","cause":"Calling transpile without providing a string input.","error":"TypeError: Cannot read properties of undefined (reading 'replace')"},{"fix":"Use format: 'html' or omit for default.","cause":"Format option not supported. Only 'html' or 'wxml' are valid.","error":"Error: Unsupported format: jsx"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"convert-wxml","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mt-wxml-transpiler","openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}