sindresorhus / file-type

Detect the file type of a file, stream, or data
MIT License
3.71k stars 351 forks source link

Add support for cpio #590

Closed dcfreire closed 1 year ago

dcfreire commented 1 year ago

Got magic bytes from the cpio manual: https://www.mkssoftware.com/docs/man4/cpio.4.asp And the MIME from: https://en.wikipedia.org/wiki/List_of_archive_formats

sindresorhus commented 1 year ago

Can you fix the merge conflict?

dcfreire commented 1 year ago

Sure, on it.

dcfreire commented 1 year ago

Sorry, I tried fixing the merge conflicts using the github editor and it messed up the formatting, fixing now.

sindresorhus commented 1 year ago

Always look over your own diff after changes ;)