Closed Phillipus closed 5 months ago
Simple test case:
test_module.ajs
containing this:
const speaker = require("helloworld");
speaker.sayHelloWorld();
node_modules
node_modules
folder create a sub-folder named helloworld
helloworld
folder create a file index.js
containing this:
exports.sayHelloWorld = function() {
window.alert("Hello World!");
}
test_module.ajs
scriptFiles attached here: script.zip
Committed to master and added a wiki entry.
This is to track the work of @jbsarrodie to implement node modules.
Dev branch: dev-jb.