Detect the file type of a Buffer/Uint8Array/ArrayBuffer
MIT License
Bot releases are hidden (Show)
/browser
sub-export 287e361
require('file-type').fromBuffer
→ import {fileTypeFromBuffer} from 'file-type'
require('file-type').fromFile
→ import {fileTypeFromFile} from 'file-type'
require('file-type').fromStream
→ import {fileTypeFromStream} from 'file-type'
require('file-type').fromTokenizer
→ import {fileTypeFromTokenizer} from 'file-type'
require('file-type').stream
→ import {fileTypeStream} from 'file-type'
require('file-type').extensions
→ import {supportedExtensions} from 'file-type'
require('file-type').mimeTypes
→ import {supportedMimeTypes} from 'file-type'
stream()
(#468) 67c8fcbhttps://github.com/sindresorhus/file-type/compare/v16.5.1...v17.0.0
mimeTypes
TypeScript type (#464) 0012c56https://github.com/sindresorhus/file-type/compare/v16.5.0...v16.5.1
https://github.com/sindresorhus/file-type/compare/v16.4.0...v16.5.0
https://github.com/sindresorhus/file-type/compare/v16.3.0...v16.4.0
https://github.com/sindresorhus/file-type/compare/v16.2.0...v16.3.0
https://github.com/sindresorhus/file-type/compare/v16.1.0...v16.2.0
https://github.com/sindresorhus/file-type/compare/v16.0.1...v16.1.0
https://github.com/sindresorhus/file-type/compare/v16.0.0...v16.0.1
https://github.com/sindresorhus/file-type/compare/v15.0.1...v16.0.0
https://github.com/sindresorhus/file-type/compare/v15.0.0...v15.0.1
https://github.com/sindresorhus/file-type/compare/v14.7.1...v15.0.0
tar
detection (#385) 3effaeehttps://github.com/sindresorhus/file-type/compare/v14.7.0...v14.7.1
.extensions
TypeScript type (#380) a58081chttps://github.com/sindresorhus/file-type/compare/v14.6.2...v14.7.0
FileType.fromStream()
on small files (#370) 50eee35https://github.com/sindresorhus/file-type/compare/v14.6.1...v14.6.2
https://github.com/sindresorhus/file-type/compare/v14.6.0...v14.6.1
https://github.com/sindresorhus/file-type/compare/v14.5.0...v14.6.0
https://github.com/sindresorhus/file-type/compare/v14.4.0...v14.5.0
https://github.com/sindresorhus/file-type/compare/v14.3.0...v14.4.0