How Mozilla Rhino can use nodejs “fs” module?
问题 Let's say I have my.js file that has dependency on nodejs fs module. Like: var fs = require('fs'); The question: How can I load Core NodeJS module like "FS" in My Mozilla Rhino Java Code to be able to run my.js that depends on it ? 回答1: I don't think you can do this. fs module just a wrapper for native bindings built into node.js itself. There are some thoughts flying in the sky of node.js community about being able to use different JS engines inside node.js but I don't think we will see this