equ

0.0.5 • Public • Published

equ

Equ is Esprima wrapper for static analyzing ECMAScript.

INSTALL

npm install equ

USAGE

var readAndParse = require('equ').readAndParse,
    SCRIPT_PATH = '/path/to/anyscript.js',
    $equ = readAndParse(SCRIPT_PATH)
;

// where is console.log
console.log(
    $equ.find('CallExpression')
        .has('[callee.object.name="console"]')
        .has('[callee.property.name="log"]')
        .attrs('loc')
);

SEEALSO

REQUIREMENTS

Readme

Keywords

none

Package Sidebar

Install

npm i equ

Weekly Downloads

1

Version

0.0.5

License

none

Last publish

Collaborators

  • kmnk