esquery | escodegen | |
---|---|---|
4 | 3 | |
789 | 2,622 | |
0.5% | 0.2% | |
1.9 | 1.2 | |
about 1 month ago | 28 days ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 or later | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
esquery
-
Speeding up the JavaScript ecosystem part 3 – eslint
Author here.
We decided to open the PR nonetheless as people kept asking us about it: https://github.com/estools/esquery/pull/134
-
Do all roads lead to Vim?
https://github.com/suchipi/grep-ast https://github.com/estools/esquery https://estools.github.io/esquery/ https://astexplorer.net/ https://www.youtube.com/watch?v=d0pOgY8__JM
-
eslint setting
You can make whatever rules you want (as long as they don't require type inferring), you just need to build the correct esquery. You can use this https://astexplorer.net/ just set it to @typescript-eslint/parser to make it recognize ts and jsx.
escodegen
-
How to make your own programming language in JavaScript
What's cool about Esprima syntax is that there are tools that generate code based on their AST. An example is escodegen which takes Esprima AST as input and outputs JavaScript code. You can think that you can use just strings to generate code, but this solution will not scale. In this tutorial, I show only a single if statement but you will run into a lot of problems if you will have more complex code.
- Show HN: Monocle – bidirectional code generation library
-
Abstract Syntax Trees: They're Actually Used Everywhere -- But What Are They?
Unparse the modified AST back into Javascript: Escodegen
What are some alternatives?
estraverse - ECMAScript JS AST traversal functions
recast - JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator
sec-literal - Security utilities to analyze ESTree Literal and JavaScript string primitive. Detect Hexadecimal, Base64, suffix and prefix patterns etc..
esprima - ECMAScript parsing infrastructure for multipurpose analysis
eslint-config-galex - hopefully the last eslint config you'll ever need - customizable & modern best practices for JS, TS, Node, React, Remix, Next, Jest, testing-library & storybook
espree - An Esprima-compatible JavaScript parser
astring - 🌳 Tiny and fast JavaScript code generator from an ESTree-compliant AST.
estree - The ESTree Spec
jquery.terminal - jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
javascript-invat-eu-inveti-si-tu - Această colecție este pentru cei interesați de o resursă deschisă dedicată înțelegerii JavaScript.
ts-lite - Compiled TypeScript. Generates Go, Swift, Kotlin, WASM, Binary