Skip to content

Find out the file type by file data or name. Get extension from filename. Confirm filename extension by file signature. Check file format.

License

Notifications You must be signed in to change notification settings

jinhr9801/filename-extension-signature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Type | Signature | Magic Number

Find out the file type by file data or name

This library implements:

  1. Get filename extension from file path

  2. Confirm filename extension by file signature

    Now support:

    .PDF .ZIP .RAR .ISO

    .JPEG .JPG .PNG .WEBP .GIF .TIFF .BMP .ICO .J2K .JP2 .EPS .PSD .PSB

    .M4A .M4B .M4P .M4V .MOV

    .MP4 .MP3 .MP2

    .WAV .AVI .AIFF .MID .FLAC .APE .RM .RMVB

    .EXE

    .TXT .HTML

    .DOC .DOCX .PPT .PPTX .XML .XMLX

    .SVG .DIB .TGA

    .WMA .WMV .ASF

Reference: https://www.filesignatures.net/ http://www.ftyps.com/ http://www.nationalarchives.gov.uk/PRONOM/Format/proFormatSearch.aspx?status=new

About

Find out the file type by file data or name. Get extension from filename. Confirm filename extension by file signature. Check file format.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages