Registry / serialization / template-expression-compiler

template-expression-compiler

JSON →
library0.1.10jsnpmunverified

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.

npm install template-expression-compiler
INSTALL
IMPORT
SIG · TEMPLATE-EXPRESSIO
T
template-expression-compiler
serializationjavascriptv0.1.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compile
✓ import { compile } from 'template-expression-compiler'
Default export is also available as `compile`.
parse
✓ import { parse } from 'template-expression-compiler'
Parse function for analyzing expressions.
default
✓ import compile from 'template-expression-compiler'
✗ const compile = require('template-expression-compiler')
ESM default import matches named `compile`.

Compiles a KnockoutJS-like template expression into TAssembly format.

import { compile } from 'template-expression-compiler'; const expression = "name + ' (' + age + ')'"; const tassembly = compile(expression); console.log(tassembly); // Output: TAssembly expression string
Debug
Known issues
gotchaPackage is essentially abandoned; no updates since early versions. Use only for legacy systems or specific compatibility with TAssembly.
fix
Consider alternative template expression compilers or migrate away from KnockoutJS/TAssembly.
affects: <=0.1.10
deprecatedThe library has known issues with complex expressions and lacks modern JavaScript support (e.g., optional chaining, nullish coalescing).
fix
Stick to simple expressions or manually transpile to supported syntax.
affects: <=0.1.10
Errors
Common errors & fixes
Cannot find module 'template-expression-compiler'
Package not installed or not in node_modules.
fix
Run `npm install template-expression-compiler`.
Upgrade
Version history
0.1.10latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
OpenAI (training)
1
Resources
template-expression-compiler — npm install template-expression-compiler · libregistry