Skip to content

Binary content #8

Open
Open
@arcanis

Description

@arcanis

I suspect this is slightly out of scope, but at the same time it's close enough that it may be worth a mention. Would module fragments be good candidates to also add support for arbitrary binary data within JS files? For instance:

  • I maintain a software which embeds multiple brotli-encoded strings. Since JS doesn't have a way to efficiently store binary data, I need to store them as base64, thus increasing the bundle size.

  • I opened in Node a discussion about Packaged apps (a single file embedding a full application, including data files, wasm, etc). Module fragments supporting binary data would allow to defer this to the userland, since userland could just store the application as a binary string along with the suitable decompression algorithm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions