atom-community / atom-script

:runner: Run ( scripts | selections | source ) in Atom
https://atom.io/packages/script
MIT License
734 stars 269 forks source link

Electron/Atom support #782

Open danielbayley opened 8 years ago

danielbayley commented 8 years ago

Would there be any way of being able to run arbitrary Coffee/JavaScript with access to the Atom/Electron environment? (I know this can already be done in the console, but would be more convenient to run selected code while writing Atom packages…)

rgbkrk commented 8 years ago

Hmmm, we're not built for it though a package could be made to hook into console.

Alternatively, you could make a package that on the run command launches the dev console and feeds in the script.