Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

isomorphic-vm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-vm

Isomorphic unsafe node.js vm for node and browser

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
1.5K
880.13%
Maintainers
1
Weekly downloads
 
Created
Source

Isomorphic VM

npm Build Status

Based on vm-browserify.

Provides an isomorphic api for node.js in browser. Uses the native vm module in node.js environment.

Installation

You can install this package with the following command:

npm install isomorphic-vm

Using with webpack and browserify

It works with webpack and browserify out of box, but you will need to add vm as external module to avoid errors (or warnings).

Usage

This library mimics the node.js's vm module.

However, the shim ignores the options for every function.

Also keep in mind, there is a very subtle difference, this library doesn't re-export the vm or shim, it exports one of them on the default export. In other words, instead of doing this:

import * as vm from 'vm';

you should do:

import vm from 'isomorphic-vm';

Typings

The typescript type definitions are also available and are installed via npm.

License

This project is licensed under the MIT license.

Keywords

vm

FAQs

Package last updated on 07 Mar 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