Simple demo of transpilation-based sandboxing.
Demonstrates using a simple Babel visitor to create a sand box which prevents the user code from passing between its
variables values with "four-letter-f-words" - matching the regex /(^|\W)(f\w{3})(\W|$)/
.
The visitor is implemented in src/plugin.js
.
The validator invoked by the transpiled code is in src/validator.js
.
To run the playground web app:
git clone [email protected]:tobich/watch-your-language.git
npm install
npm start