Skip to content

Package code page shows binary files as a raw string #1945

@sapphi-red

Description

@sapphi-red

Describe the bug

Package code page shows binary files as a raw string. For example, .woff2 files are shown like this:

https://npmx.dev/package-code/vitepress/v/1.6.4/dist%2Fclient%2Ftheme-default%2Ffonts%2Finter-italic-cyrillic-ext.woff2

Image

I'd expect it to be shown like " --- Binary file --- ". Maybe with a [show as string] button. Even further, ideally the images should be shown with a <img> tag.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Design

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions