{"id":26466,"library":"template-expression-compiler","title":"template-expression-compiler","description":"A library for parsing and compiling KnockoutJS-inspired template expressions into TAssembly format. Current version 0.1.10. This is a niche, low-dependency tool for converting between template expression syntaxes, primarily targeting the TAssembly ecosystem. It has no recent updates and is not widely used outside its specific context.","status":"abandoned","version":"0.1.10","language":"javascript","source_language":"en","source_url":"git://github.com/gwicke/template-expression-compiler","tags":["javascript"],"install":[{"cmd":"npm install template-expression-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add template-expression-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add template-expression-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Default export is also available as `compile`.","symbol":"compile","correct":"import { compile } from 'template-expression-compiler'"},{"note":"Parse function for analyzing expressions.","symbol":"parse","correct":"import { parse } from 'template-expression-compiler'"},{"note":"ESM default import matches named `compile`.","wrong":"const compile = require('template-expression-compiler')","symbol":"default","correct":"import compile from 'template-expression-compiler'"}],"quickstart":{"code":"import { compile } from 'template-expression-compiler';\n\nconst expression = \"name + ' (' + age + ')'\";\nconst tassembly = compile(expression);\nconsole.log(tassembly);\n// Output: TAssembly expression string","lang":"typescript","description":"Compiles a KnockoutJS-like template expression into TAssembly format."},"warnings":[{"fix":"Consider alternative template expression compilers or migrate away from KnockoutJS/TAssembly.","message":"Package is essentially abandoned; no updates since early versions. Use only for legacy systems or specific compatibility with TAssembly.","severity":"gotcha","affected_versions":"<=0.1.10"},{"fix":"Stick to simple expressions or manually transpile to supported syntax.","message":"The library has known issues with complex expressions and lacks modern JavaScript support (e.g., optional chaining, nullish coalescing).","severity":"deprecated","affected_versions":"<=0.1.10"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install template-expression-compiler`.","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'template-expression-compiler'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}