Skip to content

Commit

Permalink
added macos aliases and windows shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis Benson committed Apr 11, 2019
1 parent 02f666d commit eb60628
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Binary file added fixture/fixture.alias
Binary file not shown.
Binary file added fixture/fixture.lnk
Binary file not shown.
14 changes: 14 additions & 0 deletions index.js
Expand Up @@ -920,6 +920,20 @@ const fileType = input => {
};
}

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'
};
}

if (check([0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x6D, 0x61, 0x72, 0x6B, 0x00, 0x00, 0x00, 0x00])) {
return {
ext: 'alias',
mime: 'application/x.apple.alias'
};
}

return null;
};

Expand Down
4 changes: 3 additions & 1 deletion test.js
Expand Up @@ -104,7 +104,9 @@ const types = [
'dcm',
'ics',
'glb',
'pcap'
'pcap',
'lnk',
'alias'
];

// Define an entry here only if the fixture has a different
Expand Down

0 comments on commit eb60628

Please sign in to comment.