Registry / devops / bindingx-parser

bindingx-parser

JSON →
library0.0.3jsnpmunverified

BindingX Parser is a lightweight expression parser library for the BindingX project, specifically designed to parse BindingX expressions into abstract syntax trees (AST). Current stable version is 0.0.3. It has minimal dependencies, focusing solely on parsing string expressions used in conjunction with BindingX for animation or interaction binding. It is not actively maintained and lacks recent updates.

npm install bindingx-parser
INSTALL
IMPORT
SIG · BINDINGX-PARSER
B
bindingx-parser
devopsjavascriptv0.0.3
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.

parse
import { parse } from 'bindingx-parser'
import parse from 'bindingx-parser'
parse is a named export, not default export

Parses a BindingX expression string into an abstract syntax tree (AST).

import { parse } from 'bindingx-parser'; const expression = 'x + 0'; const ast = parse(expression); console.log(ast);
Debug
Known issues
gotchaThe 'parse' function uses eval internally for parsing, which can be a security risk if the expression source is untrusted.
fix
Consider sanitizing the expression before parsing or avoid using with untrusted input.
affects: <=0.0.3
deprecatedThe library has not been updated since 2018 and may not be compatible with newer versions of BindingX or JavaScript engines.
fix
Evaluate if alternative expression parsers (e.g., jsep, mathjs) can be used instead.
affects: 0.0.3
Errors
Common errors & fixes
Cannot find module 'bindingx-parser'
Package not installed or import path incorrect.
fix
Run 'npm install bindingx-parser' and ensure import is 'import { parse } from "bindingx-parser";'
SyntaxError: Unexpected token
Expression contains unsupported syntax or characters.
fix
Ensure expression is a valid BindingX expression (e.g., simple arithmetic like 'x+0', 'y*2').
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
bindingx-parser — npm install bindingx-parser · libregistry