Replies: 1 comment
-
Related Progress |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of wrapping
filein Nu & I asked myself:What about MIME Types (& Charsets)?
Everything is data. MIME Types describe types of data.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
It would be really nice, if Nushell would understand MIME Types.
As to what the implementation would look like & in what area of Nu it would fit, I am uncertain, which is the reason I open this as a Discussion rather than a clear-cut Issue.
My general idea is the following.
Make Nu support MIME Types explicitly, to add even more compatibility with real world use cases. We already have
from json, etc. but supporting MIME Types would add an even wider generic usability surface.An example use-case I imagine follows.
Continue the pipe, by processing PNG files explicitly, not only files ending with
png, which could be anything...Beta Was this translation helpful? Give feedback.
All reactions