Skip to content

tobich/watch-your-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com:tobich/watch-your-language.git
npm install
npm start

About

Simple demo of transpilation-based sandboxing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published