Frequently asked questions
Frequently asked questions
process is appropriate for Node-only projects. The adapter is useful when the same code must also run in Bun, Deno, workerd, or a browser.
They expose some Node-compatible APIs, but their permissions, globals, and execution models differ. Their markers are checked first.
Browsers and workerd do not always expose a reliable runtime version. undefined is safer than fragile user-agent parsing.
No. Permissions, network policies, sandboxes, and invalid input may still make an operation fail.
This prevents callers from accidentally modifying the native environment object. Read one value with getEnv('NAME').
No. JavaScript cannot arbitrarily cancel a promise. Pass an AbortSignal to operations that support cancellation.
Native APIs and specialized libraries already cover these areas. Wrapping them would expand maintenance without a clear portable contract.
Not currently. Use native APIs or specialized libraries; these domains are only roadmap candidates.
The package is ESM-only. Use import or a dynamic import from a compatible CommonJS project.