dune:Node.js 的小沙箱

时间:2021-06-24 16:25:37
【文件属性】:
文件名称:dune:Node.js 的小沙箱
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-24 16:25:37
JavaScript 沙丘 一个易于使用的虚拟机,用于加载和运行脚本。 你传递它的代码,它返回它的module.exports 安装 npm install dune 应用程序接口 文件()=(full_path_to_file,optional_context,custom_require) - > var assert = require('assert'); var path = require('path'); var exports = dune.file(path.join(__dirname, 'myfile.js')); assert.equal(exports, 'hello'); myfile.js module.exports = 'hello'; string() = ( code_to_run , path_to_code , context , custom_require
【文件预览】:
dune-master
----lib()
--------dune2.js(12KB)
----.npmignore(0B)
----.travis.yml(42B)
----test()
--------fixtures()
--------dune-test.js(2KB)
----README.md(1KB)
----.gitignore(13B)
----package.json(442B)

网友评论