Dodotree / file-type

Detect the file type of a Buffer/Uint8Array

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file-type Build Status

Detect the file type of a Buffer/Uint8Array

The file type is detected by checking the magic number of the buffer.

Slight modification for use with front end file uploader

About

Detect the file type of a Buffer/Uint8Array

License:MIT License


Languages

Language:JavaScript 100.0%