js-parser-discussions icon indicating copy to clipboard operation
js-parser-discussions copied to clipboard

Highlight Dependencies

Open xjamundx opened this issue 9 years ago • 4 comments

Which projects are using which tool?

In my head everyone has pretty much converged around acorn, but maybe babylon will become the new standard. I have a fairly limited set of tools I work with however, so it would be nice to see a list of modern projects and which parsers they use.

eslint for example uses espree, but mostly as a simple translation layer between acorn and esprima for error handling and other things, since eslint originally used esprima and now uses acorn under the hood (via espree).

xjamundx avatar Sep 13 '16 20:09 xjamundx

A list would be good. I agree.

TheLarkInn avatar Sep 13 '16 20:09 TheLarkInn

Also of note are download stats for the 4 big esprima-like parsers:

  1. https://www.npmjs.com/package/esprima
  2. https://www.npmjs.com/package/acorn
  3. https://www.npmjs.com/package/babylon
  4. https://www.npmjs.com/package/espree

xjamundx avatar Sep 13 '16 20:09 xjamundx

Download count can be done using shields, here is one for Esprima: npm download.

However, I question the value of displaying it. For the purpose of the discussion, it can be considered as a vanity metric, a popularity contest. The merit of the discussion should be as technical as possible.

ariya avatar Sep 14 '16 00:09 ariya

Agreed. I think downloads isn't needed in this case. However finding out what depends on each of them maybe has more relevance.

TheLarkInn avatar Sep 14 '16 13:09 TheLarkInn