Popularity
6.4
Declining
Activity
0.0
Stable
100
8
10
Monthly Downloads: 702
Programming language: Elixir
License: MIT License
Tags:
ECMAScript
Latest version: v2.7.0
estree alternatives and similar packages
Based on the "ECMAScript" category.
Alternatively, view estree alternatives based on common mentions on social networks and blogs.
Do you think we are missing an alternative of estree or a related project?
Popular Comparisons
README
Elixir-ESTree
Defines structs that represent the JavaScript AST nodes from the ESTree spec.
Also includes a JavaScript AST to JavaScript code generator.
alias ESTree.Tools.Builder
alias ESTree.Tools.Generator
ast = Builder.array_expression([
Builder.literal(1),
Builder.identifier(:a)
])
Generator.generate(ast)
# "[1, a]"
#jsx ast and generation
ast = Builder.jsx_element(
Builder.jsx_opening_element(
Builder.jsx_identifier(
"Test"
)
),
[],
Builder.jsx_closing_element(
Builder.jsx_identifier(
"Test"
)
)
)
Generator.generate(ast)
# "<Test></Test>"