New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

playpit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playpit

A simple JS sandbox for Node environments

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

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

Keywords

js

FAQs

Package last updated on 03 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts