Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vm-browserify

Package Overview
Dependencies
Maintainers
40
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vm-browserify

vm module for the browser

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.6M
decreased by-3.01%
Maintainers
40
Weekly downloads
 
Created

What is vm-browserify?

The vm-browserify npm package is a browser shim for Node.js's vm module. It allows you to run scripts in a sandboxed environment within the browser, similar to how you would in Node.js. This can be useful for executing code in a controlled and isolated context.

What are vm-browserify's main functionalities?

Running code in a sandbox

This feature allows you to execute a string of code in a new, isolated context. The sandbox object can be used to pass in and out values from the sandboxed environment.

var vm = require('vm-browserify');
var sandbox = { animal: 'cat' };
vm.runInNewContext('console.log(animal)', sandbox);

Other packages similar to vm-browserify

Keywords

FAQs

Package last updated on 04 Nov 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc