Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
247 lines
3.0 KiB
Plaintext
247 lines
3.0 KiB
Plaintext
{
|
|
"name": "file-type",
|
|
"version": "19.3.0",
|
|
"description": "Detect the file type of a Uint8Array/ArrayBuffer",
|
|
"license": "MIT",
|
|
"repository": "sindresorhus/file-type",
|
|
"funding": "https://github.com/sindresorhus/file-type?sponsor=1",
|
|
"author": {
|
|
"name": "Sindre Sorhus",
|
|
"email": "sindresorhus@gmail.com",
|
|
"url": "https://sindresorhus.com"
|
|
},
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"node": "./index.js",
|
|
"default": "./core.js"
|
|
},
|
|
"./core": "./core.js"
|
|
},
|
|
"sideEffects": false,
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"test": "xo && ava && tsd"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"index.d.ts",
|
|
"core.js",
|
|
"core.d.ts",
|
|
"supported.js",
|
|
"util.js"
|
|
],
|
|
"keywords": [
|
|
"mime",
|
|
"file",
|
|
"type",
|
|
"magic",
|
|
"archive",
|
|
"image",
|
|
"img",
|
|
"pic",
|
|
"picture",
|
|
"flash",
|
|
"photo",
|
|
"video",
|
|
"detect",
|
|
"check",
|
|
"is",
|
|
"exif",
|
|
"elf",
|
|
"macho",
|
|
"exe",
|
|
"binary",
|
|
"buffer",
|
|
"uint8array",
|
|
"jpg",
|
|
"png",
|
|
"apng",
|
|
"gif",
|
|
"webp",
|
|
"flif",
|
|
"xcf",
|
|
"cr2",
|
|
"cr3",
|
|
"orf",
|
|
"arw",
|
|
"dng",
|
|
"nef",
|
|
"rw2",
|
|
"raf",
|
|
"tif",
|
|
"bmp",
|
|
"icns",
|
|
"jxr",
|
|
"psd",
|
|
"indd",
|
|
"zip",
|
|
"tar",
|
|
"rar",
|
|
"gz",
|
|
"bz2",
|
|
"7z",
|
|
"dmg",
|
|
"mp4",
|
|
"mid",
|
|
"mkv",
|
|
"webm",
|
|
"mov",
|
|
"avi",
|
|
"mpg",
|
|
"mp2",
|
|
"mp3",
|
|
"m4a",
|
|
"ogg",
|
|
"opus",
|
|
"flac",
|
|
"wav",
|
|
"amr",
|
|
"pdf",
|
|
"epub",
|
|
"mobi",
|
|
"swf",
|
|
"rtf",
|
|
"woff",
|
|
"woff2",
|
|
"eot",
|
|
"ttf",
|
|
"otf",
|
|
"ico",
|
|
"flv",
|
|
"ps",
|
|
"xz",
|
|
"sqlite",
|
|
"xpi",
|
|
"cab",
|
|
"deb",
|
|
"ar",
|
|
"rpm",
|
|
"Z",
|
|
"lz",
|
|
"cfb",
|
|
"mxf",
|
|
"mts",
|
|
"wasm",
|
|
"webassembly",
|
|
"blend",
|
|
"bpg",
|
|
"docx",
|
|
"pptx",
|
|
"xlsx",
|
|
"3gp",
|
|
"j2c",
|
|
"jp2",
|
|
"jpm",
|
|
"jpx",
|
|
"mj2",
|
|
"aif",
|
|
"odt",
|
|
"ods",
|
|
"odp",
|
|
"xml",
|
|
"heic",
|
|
"ics",
|
|
"glb",
|
|
"pcap",
|
|
"dsf",
|
|
"lnk",
|
|
"alias",
|
|
"voc",
|
|
"ac3",
|
|
"3g2",
|
|
"m4b",
|
|
"m4p",
|
|
"m4v",
|
|
"f4a",
|
|
"f4b",
|
|
"f4p",
|
|
"f4v",
|
|
"mie",
|
|
"qcp",
|
|
"asf",
|
|
"ogv",
|
|
"ogm",
|
|
"oga",
|
|
"spx",
|
|
"ogx",
|
|
"ape",
|
|
"wv",
|
|
"cur",
|
|
"nes",
|
|
"crx",
|
|
"ktx",
|
|
"dcm",
|
|
"mpc",
|
|
"arrow",
|
|
"shp",
|
|
"aac",
|
|
"mp1",
|
|
"it",
|
|
"s3m",
|
|
"xm",
|
|
"ai",
|
|
"skp",
|
|
"avif",
|
|
"eps",
|
|
"lzh",
|
|
"pgp",
|
|
"asar",
|
|
"stl",
|
|
"chm",
|
|
"3mf",
|
|
"zst",
|
|
"jxl",
|
|
"vcf",
|
|
"jls",
|
|
"pst",
|
|
"dwg",
|
|
"parquet",
|
|
"class",
|
|
"arj",
|
|
"cpio",
|
|
"ace",
|
|
"avro",
|
|
"icc",
|
|
"fbx",
|
|
"vsdx"
|
|
],
|
|
"dependencies": {
|
|
"strtok3": "^8.0.0",
|
|
"token-types": "^6.0.0",
|
|
"uint8array-extras": "^1.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tokenizer/token": "^0.3.0",
|
|
"@types/node": "^20.10.7",
|
|
"ava": "^6.0.1",
|
|
"commonmark": "^0.30.0",
|
|
"noop-stream": "^1.0.0",
|
|
"tsd": "^0.30.3",
|
|
"xo": "^0.56.0"
|
|
},
|
|
"xo": {
|
|
"envs": [
|
|
"node",
|
|
"browser"
|
|
],
|
|
"ignores": [
|
|
"fixture"
|
|
],
|
|
"rules": {
|
|
"no-inner-declarations": "warn",
|
|
"no-await-in-loop": "warn",
|
|
"no-bitwise": "off",
|
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
"unicorn/text-encoding-identifier-case": "off",
|
|
"unicorn/switch-case-braces": "off",
|
|
"unicorn/prefer-top-level-await": "off"
|
|
}
|
|
},
|
|
"ava": {
|
|
"serial": true
|
|
}
|
|
}
|