A lightweight utility (v1.0.0, stable) for creating proxy modules that queue method calls before the actual module is loaded. Unlike heavier alternatives like lazy-async (20x larger), it focuses on minimal size and a simple API. The proxy mirrors the original API exactly; queued commands replay in order once the real implementation arrives. Ideal for deferring non-critical libraries (e.g., analytics) while still collecting calls early.
npm install command-queue-moduleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a proxy for a module with two methods; calls are queued and replayed once the real module loads after 1 second.
Switch to lazy-async or implement your own queue with ES6 Proxies.
Ensure all needed method names are listed in the array.
Always call onLoad with the real module; handle errors to prevent orphans.
Use `import createCommandQueueModule from 'command-queue-module'`
Use `const createCommandQueueModule = require('command-queue-module')`No dependency data recorded yet.