[READ-ONLY] Mirror of https://github.com/Schniz/js-playgrounds. Experimental editor agnostic in-line evaluation: like Swift playgrounds, only for JS!
0

Configure Feed

Select the types of activity you want to include in your feed.

README.md

js-playgrounds-cli#

Usage#

playground myfile.js

Should work just like node!

How does it work?#

  • A babel plugin transforms every expression to a function call
  • The library stores every expression result. Every object is "stringified" using Node's util#inspect
  • When your script exits, it prints everything with @PLAYGROUND: prefix (can be changed in the future)
  • Another script gets all the output from your script and splits it between plain console, and playground values. then it creates a new json from the input.