Skip to content

Add content type-to-extension conversion #397

Closed
@tmannherz

Description

@tmannherz

Currently, the package only does file-to-content type conversion via the lookupMimeType function. As the extension maps already exist, it'd be easy to add both sides of the lookup, something like:

print(lookupExtension('text/html'));  // html
print(lookupExtension('application/pdf'));  // pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)package:mimetype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions