Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.15.22.202
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
vm-browserify /
Delete
Unzip
Name
Size
Permission
Date
Action
example
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
test
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
LICENSE
1.05
KB
-rw-r--r--
2013-12-28 10:00
index.js
3.71
KB
-rw-r--r--
2014-01-28 08:47
package.json
1.75
KB
-rw-r--r--
2021-02-04 21:24
readme.markdown
1.29
KB
-rw-r--r--
2013-12-28 10:02
Save
Rename
# vm-browserify emulate node's vm module for the browser [](https://ci.testling.com/substack/vm-browserify) # example Just write some client-side javascript: ``` js var vm = require('vm'); $(function () { var res = vm.runInNewContext('a + 5', { a : 100 }); $('#res').text(res); }); ``` compile it with [browserify](http://github.com/substack/node-browserify): ``` browserify entry.js -o bundle.js ``` then whip up some html: ``` html <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="/bundle.js"></script> </head> <body> result = <span id="res"></span> </body> </html> ``` and when you load the page you should see: ``` result = 105 ``` # methods ## vm.runInNewContext(code, context={}) Evaluate some `code` in a new iframe with a `context`. Contexts are like wrapping your code in a `with()` except slightly less terrible because the code is sandboxed into a new iframe. # install This module is depended upon by browserify, so you should just be able to `require('vm')` and it will just work. However if you want to use this module directly you can install it with [npm](http://npmjs.org): ``` npm install vm-browserify ``` # license MIT