Skip to content

drwtsn95/js-ast-matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-ast-matcher

JavaScript AST Pattern Matcher

Build

from sources

git clone https://github.com/drwtsn95/js-ast-matcher
npm install

via NPM

npm install js-ast-matcher

Run

You can run the matcher either using the cli or by importing it from your code.

From CLI

node checker.js [-h] [-f INFILE] [-d DIRECTORY] patterns [patterns ...]

positional arguments:
  patterns              filename of the AST pattern

optional arguments:
  -h, --help            show this help message and exit
  -f INFILE, --infile INFILE
                        provide filename instead of stdin use
  -d DIRECTORY, --directory DIRECTORY
                        run matcher on whole directory with ONLY JS FILES

About

Javascript AST Pattern Matcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published