1.1.2 • Published 8 years ago

playpit v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Playpit

Build Status

A simple JS sandbox for Node environments.

Installing

$ npm install --save playpit memory-fs
var MemoryFS = require('memory-fs'),
    memoryFS = new MemoryFS(),
    playpit = require('playpit').create(memoryFS);

memoryFS.writeFileSync('/test.js', 'console.log("Hello!")');
playpit.execute('require("/test.js");');
Hello!

Try the example

$ npm install
$ node demo/simple

File1
File2
Then
Index
End
1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago