API reference
The API reference for WRT.
w96.WRT
w96.WRTconst scriptResult = await w96.WRT.run("return await FS.readstr('c:/system/credits.txt')");
// Returns the contents of c:/system/credits.txt// A simple module include demonstration
// Includes can use relative paths, unlike the standard Windows 96 FS functions.
/* ======= code to eval with WRT ======= */
const code = `const myModule = await include("c:/test.js");
console.log(myModule.something());`;
await w96.WRT.run(code);
/* ======= code for c:/test.js ======= */
module.exports = {
something: ()=>"Hello, world!"
}Last updated