0.0.6 • Published 5 years ago

js-el v0.0.6

Weekly downloads
351
License
-
Repository
github
Last release
5 years ago

XMLDOM Build Status Coverage Status NPM version

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

  • Expression: Constructor #evaluate(token) #getVarMap() #getCallMap() #token
0.0.6

5 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

10 years ago