Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Consider/ Requesting Access to read-only AST of Javascript Parser #675

Open
ganeshkbhat opened this issue Nov 28, 2023 · 0 comments

Comments

@ganeshkbhat
Copy link

ganeshkbhat commented Nov 28, 2023

Can you make the AST available as read-only to developers in browsers [rethink security concerns] and js server environments if not on browers? Seems like the mozilla docs Parser_API documentation is somehow removed and I am still wondering how to access the file's parsed, even if read-only, AST

  1. Access AST: Proposal status: Access AST of the javascript module nodejs/node#45158
  2. Use Cases of AST like JS Parsers: access the import cache imported packages cache like require.cache nodejs/node#45207
  3. One of many JS Parsers [Use Cases]: Upgrade to latest version of ECMAScript 2021/ 2022 dop251/goja#498
  4. JS Parsers in the market [Use Cases]: https://github.com/fkling/astexplorer
  5. https://stackoverflow.com/questions/16127985/what-is-javascript-ast-how-to-play-with-it
@ganeshkbhat ganeshkbhat changed the title Access to read-only AST of Javascript Parser [Feature] Consider/ Requesting Access to read-only AST of Javascript Parser Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant