🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

js-el

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-el

JSEL.

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
46
64.29%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

expression

FAQs

Package last updated on 24 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts