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

output transformed AST #417

Closed
timoxley opened this issue Jan 8, 2015 · 5 comments
Closed

output transformed AST #417

timoxley opened this issue Jan 8, 2015 · 5 comments
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@timoxley
Copy link
Contributor

timoxley commented Jan 8, 2015

Any way to get a transformed AST back from 6to5 instead of program text? Or should we rely on acorn directly and simply pump the output text back into acorn?

@sebmck
Copy link
Contributor

sebmck commented Jan 8, 2015

It's already provided via the api require("6to5").transform("code").ast;.

@timoxley
Copy link
Contributor Author

timoxley commented Jan 8, 2015

👍

@timoxley timoxley closed this as completed Jan 8, 2015
@jamiebuilds
Copy link
Contributor

We should document this better: http://6to5.org/docs/usage/api/

@sebmck
Copy link
Contributor

sebmck commented Jan 8, 2015

@thejameskyle result.ast;

@jamiebuilds
Copy link
Contributor

@sebmck Yes its there, but theres very little information about the node.js api in general

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jan 19, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants