| Filename | Latest commit message | Latest commit date |
|---|---|---|
What this means is that XDF disk images formatted as 80-track 23-sector-per-track images will work with XDF code that honors that format; however, I've not yet been able to test with "real" XDF disk images (ie, disk images created with DiskDump using the experimental --xdf flag). "Real" XDF disk images almost certainly need more work (eg, setting all the sector IDs properly), but the groundwork has been laid. |
||
| .. | ||
| component.js | ||
| defines.js | ||
| diskapi.js | ||
| dumpapi.js | ||
| embed.js | ||
| externs.js | ||
| netlib.js | ||
| nodebug.js | ||
| proclib.js | ||
| README.md | ||
| reportapi.js | ||
| sockets.js | ||
| strlib.js | ||
| userapi.js | ||
| usrlib.js | ||
| weblib.js | ||
Shared Sources
This folder contains a mix of shared code, with some files used only by Node (server) modules, some used only by Browser (client) modules, and others used by both.
At the moment, only a few files are completely agnostic; eg: strlib.js and usrlib.js. One give-away is that neither contain references to any globals (although references to each other would be fine).
netlib.js is appropriate only for Node modules, because it contains code that relies on Node's global Buffer object, as indicated by:
/* global Buffer: false */
And weblib.js is appropriate only for client modules, because it contains code that relies on the browser's global window object, as indicated by:
/* global window: true */
We declare window modifiable (true) so that defines.js can set global.window to false when running within Node, allowing any other code to test the existence of window with a simple:
if (window) {...}
instead of:
if (typeof window !== "undefined") {...}