[]previous and next page

@shadow-js/dusk/node

The 19 exports of @shadow-js/dusk/node: 8 functions, 10 interfaces and 1 type.

Everything @shadow-js/dusk/node exports, from the TSDoc of its entry point.

Functions#

  • createFileKVStore: Creates the file store.
  • isCompressible: Whether a content type is worth compressing: text, JSON, JavaScript, XML, SVG, WebAssembly.
  • markProcessLocalStore: Records that a store keeps its entries in the memory of this process only.
  • negotiateEncoding: Chooses a content coding from Accept-Encoding: the highest q-value wins, and a tie goes to brotli, then zstd (only where node:zlib has it), then gzip.
  • node: The adapter for Node.js: writes server.mjs.
  • safeSegments: Decodes a request path into safe segments.
  • serve: Serves a handler over HTTP with Node's http module.
  • workerInfo: Tells which process the caller runs in.

Interfaces#

Types#

  • Encoding: A content coding this server produces.