Skip to content

Isolated JavaScript contexts for Bare

License

Notifications You must be signed in to change notification settings

holepunchto/bare-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bare-vm

Isolated JavaScript contexts for Bare.

npm i bare-vm

Usage

const vm = require('bare-vm')

const context = vm.createContext()
vm.runInContext('x = 40; x += 2', context) // 42

vm.runInNewContext('x = 40; x += 2') // 42

License

Apache-2.0

About

Isolated JavaScript contexts for Bare

Resources

License

Stars

Watchers

Forks