identify-filetype

1.0.0 • Public • Published

identify-filetype

Identifies the file-type of a buffer using the magic-number signatures at the start of the file.

var identify = require('identify-filetype')
 
console.log(identify(some_buffer)) // => string | false

Supported types:

jpg png gif bmp tif tif nif ico psd rar zip gz msi iso rtf avi wmv wma swf flv mid pdf doc docx mp3 svg html

Tested:

tif pdf psd gif jpg png bmp tif ico rar docx gz doc rtf svg html

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    126
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    126

Package Sidebar

Install

npm i identify-filetype

Weekly Downloads

126

Version

1.0.0

License

MIT

Last publish

Collaborators

  • pfraze