estree-toolkit
includes all the necessary tools to start working with ESTree.
You can install estree-toolkit
using npm
or yarn
npm i estree-toolkit
I know there is Babel. But there are
other tools which are faster than Babel. For example, meriyah
is 3x faster than @babel/parser
, astring
is up to 50x faster than @babel/generator
. But these tool only work with ESTree AST. I wanted to use these
faster alternatives for one of my projects but could not find any traverser with
batteries-included. So I made one myself, with awesome scope analysis, it has all the things that you would need for traversing an ESTree AST.