{"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,"search_vec":"'0.1.10':21 'compil':4,10 'context':54 'convert':31 'current':19 'depend':28 'ecosystem':40 'express':3,15,34 'format':18 'inspir':13 'javascript':55 'knockoutj':12 'knockoutjs-inspir':11 'librari':6 'low':27 'low-depend':26 'nich':25 'outsid':51 'pars':8 'primarili':36 'recent':44 'specif':53 'syntax':35 'target':37 'tassembl':17,39 'templat':2,14,33 'template-expression-compil':1 'tool':29 'updat':45 'use':50 'version':20 'wide':49","created_at":"2026-05-01T13:50:07.425205+00:00","updated_at":"2026-05-01T13:50:07.425205+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/gwicke/template-expression-compiler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/template-expression-compiler","openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"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}}