{"package":"file-type","ecosystem":"npm","latest_version":"22.1.1","description":"Detect the file type of a file, stream, or data","license":"MIT","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://github.com/sindresorhus/file-type#readme","repository":"https://github.com/sindresorhus/file-type","downloads_weekly":41158491,"health":{"score":92,"risk":"low","breakdown":{"maintenance":25,"popularity":20,"security":25,"maturity":15,"community":7,"popularity_floor":0},"deprecated":false,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"22.1.1","total_count":172,"recent":["20.1.0","20.2.0","20.3.0","20.4.0","20.4.1","20.5.0","21.0.0","21.1.0","21.1.1","21.2.0","21.3.0","21.3.1","21.3.2","21.3.3","21.3.4","22.0.0","22.0.1","22.0.2","22.1.0","22.1.1"]},"metadata":{"deprecated":false,"deprecated_message":null,"maintainers_count":1,"first_published":"2014-04-24T11:06:04.434Z","last_published":"2026-09-17T05:27:34.572Z","dependencies_count":4,"dependencies":["strtok3","token-types","uint8array-extras","@tokenizer/inflate"]},"github_stats":{"stars":4274,"forks":396,"open_issues":0,"is_archived":false,"pushed_at":"2026-04-09T15:24:14+00:00"},"bundle":{"size_kb":62.8,"gzip_kb":18.4,"dependency_count":4,"has_js_module":false,"has_side_effects":false,"scoped":false,"source":"bundlephobia"},"typescript":{"score":7,"has_types":true,"types_source":"definitely-typed","types_package":"@types/file-type"},"known_issues":{"bugs_count":0,"bugs_severity":{},"status_breakdown":{},"link":null,"scope":"none"},"historical_compromise":null,"recommendation":{"action":"safe_to_use","issues":[],"use_version":"22.1.1","version_hint":null,"summary":"file-type@22.1.1 is safe to use (health: 92/100)"},"version_scoped":null,"_meta":{"endpoint":"check","tier":"full","philosophy":"DepScope is free. Use the cheapest endpoint that answers your real question.","cheaper_alternatives":[{"endpoint":"/api/exists/npm/file-type","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/file-type","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/file-type","tokens_estimated":280,"use_when":"you want a plain-text LLM-friendly brief instead of JSON"},{"endpoint":"POST /api/check_bulk","tokens_estimated":60,"use_when":"you have 5+ packages to check; sends one round-trip instead of N"}],"docs":"https://depscope.dev/integrate"},"_cache":"hit","_response_ms":0}