pcjs/modules/shared/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2017-08-24 12:42:04 -07:00
..
component.js Improved logging of strings with embedded carriage returns 2017-08-02 10:58:21 -07:00
debugger.js New blog post: Adventures in Archiving 2017-06-15 14:39:08 -07:00
defines.js Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
diskapi.js Changed DiskDump to deal better with disk images that are physically larger than the disk's logical file system (specifically, 320Kb FAT images inside 360Kb disk images, and 160Kb FAT images inside 180Kb disk images); the Lotus 1-2-3 v1.0a disks I dumped from my personal collection are the perfect example. 2017-07-04 13:35:50 -07:00
dumpapi.js Added support for PDP-10 RAM images 2017-02-26 20:37:16 -08:00
embed.js Made embedMachine() a bit more robust, so that we can easily replace a compiled debugger script ("-dbg") with an uncompiled script ("-uncompiled") 2017-08-16 21:40:28 -07:00
externs.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
int36.js Perform the documented encoding of SIXBIT character data for MACRO-10 2017-03-12 11:56:15 -07:00
keys.js Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
netlib.js Start using HTTPS to access all archived files 2017-08-23 20:20:17 -07:00
nodebug.js Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
private.js Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
proclib.js Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
README.md Somehow I failed to add two of the four machines to the release... hmmm. 2017-01-31 16:18:35 -08:00
reportapi.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
save.js Fixed PCx86 "Save Machine" functionality (broken by the inclusion of source maps at the end of the compiled scripts) 2017-08-16 20:52:15 -07:00
sockets.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
state.js Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
sticky.js Added more scripting support to PCx86 (eg, for loading disks, typing keys, and waiting for both to finish) 2017-07-25 10:30:29 -07:00
strlib.js Cleaned up the MarkOut module (and fixed some encoding problems with code blocks); affects only users of the Node-based web server 2017-06-29 08:12:32 -07:00
userapi.js Unforked the shared modules -- ES6 is now the default 2017-01-31 13:50:55 -08:00
usrlib.js Cleaned up browser support for full-screen and pointer-locking in the Video component, and reduced the default scale factor for mouse movement events from 1.0 to 0.5, since modern screens are generally much higher resolution 2017-08-02 10:37:45 -07:00
weblib.js Updated READMEs with more demo information 2017-08-24 12:42:04 -07:00

layout title permalink
page Shared Modules /modules/shared/lib/

Shared Modules

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 */

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") {...}