Node Helpers
Utility functions for working with node operations.
Functions
Section titled “Functions”| Function | Description |
|---|---|
isBuffer | Checks if a value is a Node.js Buffer instance. |
isNodeStream | Checks if a value is a Node.js stream (has a `.pipe()` method). |
isSharedArrayBuffer | Checks if a value is a `SharedArrayBuffer` instance. |
safeReadJsonFile | Reads a file and parses its contents as JSON, returning `null` (or a fallback) on any failure — a missing/unreadable fi… |