adoublefA
Denoβ€’3y agoβ€’
10 replies
adoublef

extension method returning undefined for `text/plain`

Given the following:

console.log(
    "text/plain",
    extension("text/plain"),
    extensionsByType("text/plain"),
    parseMediaType("text/plain"),
    [...extensions.entries()]
);


I seem to get the result

text/plain undefined undefined [ "text/plain", undefined ] []


Am I missing something?
Was this page helpful?