New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for lnk
and alias
formats
#200
Conversation
solves #192 |
Use the |
index.js
Outdated
if (check([0x4C, 0x00, 0x00, 0x00, 0x01, 0x14, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46])) { | ||
return { | ||
ext: 'lnk', | ||
mime: 'application/x.ms.shortcut' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment that the MIME is just invented by us? Same with the other one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, technically, x.
already indicates it was just invented by random person. I'll add it to readme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but sometimes it's a common convention shared by multiple tools/software. Here, it's just us using it.
lnk
and alias
formats
https://forensicswiki.org/wiki/LNK
https://en.wikipedia.org/wiki/Alias_(Mac_OS)#File_structure
Fixes #192