Skip to content

jindw/jsel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • #evaluate(token) #getVarMap() #getCallMap() #token

About

JavaScript Style expression parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published