Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
file
Read-only mirror of file CVS repository, updated every half hour. NOTE: do not make pull requests here, nor comment any commits, submit them usual way to bug tracker or to the mailing list. Maintainer(s) are not tracking this git mirror.
To most, it is a curious fact that file extensions should be of very much interest to me in the context of front-end web development. Up until a few months ago, my project (https://linuxontheweb.github.io/) was a fairly Chrome-centric thing (using window.webkitRequestFileSystem), and could lead to flame wars when trying to promote it. But now, all of the major browser vendors ship with the new origin private file system (OPFS, which uses navigator.storage.getDirectory).
I know I previously used to perform sanity checks on file data to see if it should actually be sent to a given application (such as a text editor), but I don't currently see that anywhere in the code, since I've recently been prioritizing code simplicity and understandability above all else.
Here's the file where I define which extensions are opened by which apps: https://github.com/linuxontheweb/linuxontheweb.github.io/blo... .
> If you have any resources on this topic off the top of your head I'd appreciate it if you shared them
I wrote a Ruby library that attempts to be good at this https://github.com/okeeblow/DistorteD/tree/NEW%E2%80%85SENSA...
https://www.darwinsys.com/file/
This is the authors website. Apparently yeah its not part of GNU utils, I had no idea, I knew it came with most Linux systems so I looked for the Debian package and found the site linked above.
https://packages.debian.org/bookworm/file