XMLDOM
![NPM version](https://camo.githubusercontent.com/ea81612b8612dfa62f4f1b45f7f60febd9777a588127805e9b673104de9a8dd3/68747470733a2f2f62616467652e667572792e696f2f6a732f786d6c646f6d2e706e67)
A JavaScript implementation of JavaScript Style Expression Engine.
Install:
npm install js-el
Example:
var Expression = require('js-el');
var el = new Expression("(object.attr+x)+1+JSON.stringfy([c,d])")
console.info(String(el))
console.info(el.getVarMap())
console.info(el.getCallMap())
object.attr+x+1+JSON.stringfy([c,d])
{ object: [ 'attr' ],
x: [ '' ],
JSON: [ 'stringfy' ],
c: [ '' ],
d: [ '' ] }
{ JSON: [ 'stringfy' ] }
API Reference
- #evaluate(token) #getVarMap() #getCallMap() #token