Understand the two entry points of modern-tar
mainThe package provides two distinct entry points depending on your environment and needs:
modern-tar: The core, cross-platform streaming API. It uses the Web Streams API and is suitable for any modern JavaScript environment, including Browsers, Cloudflare Workers, and Node.js.modern-tar/fs: High-level filesystem utilities specifically designed for Node.js. These APIs use Node.js streams and provide advanced features like directory packing, extraction to local paths, and filesystem-specific options.