Open cpojer opened 8 years ago
This would be amazing
It's not possible right now, since we don't run our own server. But we have to solve the parse situation anyway, so probably afterwards :)
I was thinking the same for babel (although probably out of scope) babel src -d lib --plugins http://astexplorer.net/#/QaBzVS9XHK
. You could parse the html and output a hidden div with the plugin code haha.
What would be fun to do is to use requirefromtwitter/twpm
Looks like this is already supported! Currently jscodeshift lets you pass a url to the --transform
cli arg. Which means you can pass raw files from github or gist.
So the workflow from astexplorer is admittedly convoluted but still works so 🤷
transform.js
and press raw
Example: jscodeshift --transform="https://gist.githubusercontent.com/astexplorer/294702b0d5b73c3e1f44e630fa81ccbf/raw/80ef86991585ee03001c4de49cb61d1eb8f789e6/transform.js" path/to/code
Add support for
jscodeshift -t http://astexplorer.net/#/QaBzVS9XHK