Gathering detailed insights and metrics for @scion-scxml/vm-browserify
Gathering detailed insights and metrics for @scion-scxml/vm-browserify
Gathering detailed insights and metrics for @scion-scxml/vm-browserify
Gathering detailed insights and metrics for @scion-scxml/vm-browserify
npm install @scion-scxml/vm-browserify
Typescript
Module System
Node Version
NPM Version
64.3
Supply Chain
87.4
Quality
75.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (98.75%)
HTML (1.25%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
4,388
Last Day
1
Last Week
2
Last Month
35
Last Year
374
MIT License
200 Stars
46 Commits
38 Forks
5 Watchers
2 Branches
32 Contributors
Updated on Feb 06, 2025
Minified
Minified + Gzipped
Latest Version
0.0.31
Package Id
@scion-scxml/vm-browserify@0.0.31
Unpacked Size
21.79 kB
Size
6.80 kB
File Count
9
NPM Version
6.14.8
Node Version
12.18.2
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-50%
2
Compared to previous week
Last Month
20.7%
35
Compared to previous month
Last Year
-29.7%
374
Compared to previous year
emulate node's vm module for the browser
Just write some client-side javascript:
1var vm = require('vm'); 2 3$(function () { 4 var res = vm.runInNewContext('a + 5', { a : 100 }); 5 $('#res').text(res); 6});
compile it with browserify:
browserify entry.js -o bundle.js
then whip up some html:
1<html> 2 <head> 3 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> 4 <script src="/bundle.js"></script> 5 </head> 6 <body> 7 result = <span id="res"></span> 8 </body> 9</html>
and when you load the page you should see:
result = 105
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.
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:
npm install vm-browserify
MIT
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 4/25 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More