script modules and 'require()'

This commit is contained in:
minjaesong
2023-01-08 05:07:25 +09:00
parent 3a879edd54
commit ca39263131
7 changed files with 75 additions and 28 deletions

View File

@@ -0,0 +1,10 @@
exports.greet = function() { println("Hello, module!") }
/*
Try in your user program:
let m = require("A:/tvdos/include/example.js")
m.greet()
*/