archiverjs / node-archiver

a streaming interface for archive generation
https://www.archiverjs.com
MIT License
2.76k stars 218 forks source link

Use node:-prefixed imports for Node.js core modules #773

Open olriko opened 4 days ago

olriko commented 4 days ago

Currently, the package uses bare specifiers to import Node.js core modules. This prevents the package from being used in environments like Cloudflare Workers Runtime, which don't support Node.js APIs.

To improve compatibility, we should update our imports to use the node: prefix for all Node.js core modules.

Example change:

image https://developers.cloudflare.com/workers/runtime-apis/nodejs/