Index
Modules:
filetype
,
filetype/archive
,
filetype/audio
,
filetype/font
,
filetype/image
,
filetype/private/util
,
filetype/types
,
filetype/video
.
API symbols
archiveMatcher:
archive: archiveMatcher
audioMatcher:
audio: audioMatcher
checkMagicNumber:
util: checkMagicNumber(buf, magicNumber: openArray[byte]): bool
FileType:
types: FileType
fontMatcher:
font: fontMatcher
generateFileFunc:
util: generateFileFunc(format: untyped): untyped
generateFunc:
util: generateFunc(format: untyped): untyped
imageMatcher:
image: imageMatcher
is7z:
archive: is7z(buf: openArray[byte]): bool
is7zFile:
archive: is7zFile(file: string): bool
isAac:
audio: isAac(buf: openArray[byte]): bool
isAacFile:
audio: isAacFile(file: string): bool
isAmr:
audio: isAmr(buf: openArray[byte]): bool
isAmrFile:
audio: isAmrFile(file: string): bool
isAr:
archive: isAr(buf: openArray[byte]): bool
isArFile:
archive: isArFile(file: string): bool
isAvi:
video: isAvi(buf: openArray[byte]): bool
isAviFile:
video: isAviFile(file: string): bool
isBmp:
image: isBmp(buf: openArray[byte]): bool
isBmpFile:
image: isBmpFile(file: string): bool
isBz2:
archive: isBz2(buf: openArray[byte]): bool
isBz2File:
archive: isBz2File(file: string): bool
isCr2:
image: isCr2(buf: openArray[byte]): bool
isCr2File:
image: isCr2File(file: string): bool
isCrx:
archive: isCrx(buf: openArray[byte]): bool
isCrxFile:
archive: isCrxFile(file: string): bool
isDeb:
archive: isDeb(buf: openArray[byte]): bool
isDebFile:
archive: isDebFile(file: string): bool
isDwg:
image: isDwg(buf: openArray[byte]): bool
isDwgFile:
image: isDwgFile(file: string): bool
isElf:
archive: isElf(buf: openArray[byte]): bool
isElfFile:
archive: isElfFile(file: string): bool
isExe:
archive: isExe(buf: openArray[byte]): bool
isExeFile:
archive: isExeFile(file: string): bool
isFlac:
audio: isFlac(buf: openArray[byte]): bool
isFlacFile:
audio: isFlacFile(file: string): bool
isFlv:
video: isFlv(buf: openArray[byte]): bool
isFlvFile:
video: isFlvFile(file: string): bool
isGif:
image: isGif(buf: openArray[byte]): bool
isGifFile:
image: isGifFile(file: string): bool
isGz:
archive: isGz(buf: openArray[byte]): bool
isGzFile:
archive: isGzFile(file: string): bool
isIco:
image: isIco(buf: openArray[byte]): bool
isIcoFile:
image: isIcoFile(file: string): bool
isJpeg:
image: isJpeg(buf: openArray[byte]): bool
isJpeg2000:
image: isJpeg2000(buf: openArray[byte]): bool
isJpeg2000File:
image: isJpeg2000File(file: string): bool
isJpegFile:
image: isJpegFile(file: string): bool
isJxr:
image: isJxr(buf: openArray[byte]): bool
isJxrFile:
image: isJxrFile(file: string): bool
isLz:
archive: isLz(buf: openArray[byte]): bool
isLzFile:
archive: isLzFile(file: string): bool
isMidi:
audio: isMidi(buf: openArray[byte]): bool
isMidiFile:
audio: isMidiFile(file: string): bool
isMp3:
audio: isMp3(buf: openArray[byte]): bool
isMp3File:
audio: isMp3File(file: string): bool
isMp4:
video: isMp4(buf: openArray[byte]): bool
isMp4File:
video: isMp4File(file: string): bool
isMpeg:
video: isMpeg(buf: openArray[byte]): bool
isMpegFile:
video: isMpegFile(file: string): bool
isNes:
archive: isNes(buf: openArray[byte]): bool
isNesFile:
archive: isNesFile(file: string): bool
isOgg:
audio: isOgg(buf: openArray[byte]): bool
isOggFile:
audio: isOggFile(file: string): bool
isOtf:
font: isOtf(buf: openArray[byte]): bool
isOtfFile:
font: isOtfFile(file: string): bool
isPdf:
archive: isPdf(buf: openArray[byte]): bool
isPdfFile:
archive: isPdfFile(file: string): bool
isPng:
image: isPng(buf: openArray[byte]): bool
isPngFile:
image: isPngFile(file: string): bool
isPs:
archive: isPs(buf: openArray[byte]): bool
isPsd:
image: isPsd(buf: openArray[byte]): bool
isPsdFile:
image: isPsdFile(file: string): bool
isPsFile:
archive: isPsFile(file: string): bool
isRpm:
archive: isRpm(buf: openArray[byte]): bool
isRpmFile:
archive: isRpmFile(file: string): bool
isRtf:
archive: isRtf(buf: openArray[byte]): bool
isRtfFile:
archive: isRtfFile(file: string): bool
isSqlite:
archive: isSqlite(buf: openArray[byte]): bool
isSqliteFile:
archive: isSqliteFile(file: string): bool
isTiff:
image: isTiff(buf: openArray[byte]): bool
isTiffFile:
image: isTiffFile(file: string): bool
isTtf:
font: isTtf(buf: openArray[byte]): bool
isTtfFile:
font: isTtfFile(file: string): bool
isWav:
audio: isWav(buf: openArray[byte]): bool
isWavFile:
audio: isWavFile(file: string): bool
isWebp:
image: isWebp(buf: openArray[byte]): bool
isWebpFile:
image: isWebpFile(file: string): bool
isWmv:
video: isWmv(buf: openArray[byte]): bool
isWmvFile:
video: isWmvFile(file: string): bool
isWoff:
font: isWoff(buf: openArray[byte]): bool
isWoff2:
font: isWoff2(buf: openArray[byte]): bool
isWoff2File:
font: isWoff2File(file: string): bool
isWoffFile:
font: isWoffFile(file: string): bool
isXz:
archive: isXz(buf: openArray[byte]): bool
isXzFile:
archive: isXzFile(file: string): bool
isZip:
archive: isZip(buf: openArray[byte]): bool
isZipFile:
archive: isZipFile(file: string): bool
match:
filetype: match(buf: openArray[byte]): FileType
matchFile:
filetype: matchFile(file: string): FileType
Mime:
types: Mime
newFileType:
types: newFileType(mime, ext: string): FileType
readMagicNubmer:
util: readMagicNubmer(file: string): seq[byte]
str2Bytes:
util: str2Bytes(s: string): seq[byte]
type3gp:
video: type3gp
type7z:
archive: type7z
typeAac:
audio: typeAac
typeAmr:
audio: typeAmr
typeAr:
archive: typeAr
typeAvi:
video: typeAvi
typeBmp:
image: typeBmp
typeBz2:
archive: typeBz2
typeCab:
archive: typeCab
typeCr2:
image: typeCr2
typeCrx:
archive: typeCrx
typeDcm:
archive: typeDcm
typeDeb:
archive: typeDeb
typeDwg:
image: typeDwg
typeElf:
archive: typeElf
typeEot:
archive: typeEot
typeEpub:
archive: typeEpub
typeExe:
archive: typeExe
typeFlac:
audio: typeFlac
typeFlv:
video: typeFlv
typeGif:
image: typeGif
typeGz:
archive: typeGz
typeHeif:
image: typeHeif
typeIco:
image: typeIco
typeIso:
archive: typeIso
typeJpeg:
image: typeJpeg
typeJpeg2000:
image: typeJpeg2000
typeJxr:
image: typeJxr
typeLz:
archive: typeLz
typeM4a:
audio: typeM4a
typeM4v:
video: typeM4v
typeMachO:
archive: typeMachO
typeMidi:
audio: typeMidi
typeMkv:
video: typeMkv
typeMov:
video: typeMov
typeMp3:
audio: typeMp3
typeMp4:
video: typeMp4
typeMpeg:
video: typeMpeg
typeNes:
archive: typeNes
typeOgg:
audio: typeOgg
typeOtf:
font: typeOtf
typePdf:
archive: typePdf
typePng:
image: typePng
typePs:
archive: typePs
typePsd:
image: typePsd
typeRar:
archive: typeRar
typeRpm:
archive: typeRpm
typeRtf:
archive: typeRtf
typeSqlite:
archive: typeSqlite
typeSwf:
archive: typeSwf
typeTar:
archive: typeTar
typeTiff:
image: typeTiff
typeTtf:
font: typeTtf
typeWav:
audio: typeWav
typeWebm:
video: typeWebm
typeWebp:
image: typeWebp
typeWmv:
video: typeWmv
typeWoff:
font: typeWoff
typeWoff2:
font: typeWoff2
typeXz:
archive: typeXz
typeZ:
archive: typeZ
typeZip:
archive: typeZip
videoMatcher:
video: videoMatcher