pcjs/modules/shared/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2017-01-30 15:30:44 -08:00
..
component.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
debugger.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
defines.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
diskapi.js Updated PDP-11 Debugger to include line breaks between steps 2017-01-24 14:36:15 -08:00
dumpapi.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
embed.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
externs.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
keys.js Perform a more conservative remapping of keyCodes for Firefox's sake 2017-01-30 15:30:44 -08:00
netlib.js Protect all Node-specific code with NODE checks 2017-01-02 15:16:18 -08:00
nodebug.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
private.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
proclib.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
README.md Fixed assorted inspection errors 2016-12-21 17:40:02 -08:00
reportapi.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
save.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
sockets.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
state.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
sticky.js Added support in the Node web server for scripts on web pages, too 2017-01-25 11:45:22 -08:00
strlib.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
userapi.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
usrlib.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00
weblib.js v1.32.0: The New Year Release 2016-12-30 15:56:01 -08:00

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

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