bcoe / sandcastle

A simple and powerful sandbox for running untrusted JavaScript.
MIT License
220 stars 48 forks source link

Add windows support #71

Closed trevor-morris closed 3 years ago

trevor-morris commented 7 years ago

Use function socketName instead of hard coding socket names. The socketName function returns names of the form /tmp/sandcastle_x.sock on Unix/MacOS and names of the form .\pipe\sandcastle_x on Windows. x is the instance number (if no instance number is given the entire _x section is omitted).

Minor fix to one test to use path.sep instead of hardcoded / for file separator.

Added exclusions for IntelliJ/WebStorm project files in .gitignore