You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ Unlike `VM`, `NodeVM` allows you to require modules in the same way that you wou
146
146
*`require.resolve` - An additional lookup function in case a module wasn't found in one of the traditional node lookup paths.
147
147
*`require.customRequire` - Use instead of the `require` function to load modules from the host.
148
148
*`require.strict` - `false` to not force strict mode on modules loaded by require (default: `true`).
149
+
*`require.fs` - Custom file system implementation.
149
150
*`nesting` - **WARNING**: Allowing this is a security risk as scripts can create a NodeVM which can require any host module. `true` to enable VMs nesting (default: `false`).
150
151
*`wrapper` - `commonjs` (default) to wrap script into CommonJS wrapper, `none` to retrieve value returned by the script.
0 commit comments