Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 544 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 544 Bytes

Transpilation-based sandboxing

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.

Install

To run the playground web app:

git clone [email protected]:tobich/watch-your-language.git
npm install
npm start