{"id":"files.type-detection.file-type","compat":{"runtime":"node@>=20"},"schema":"turbineh.component/v0.1","source":{"purl":"pkg:npm/file-type@22.1.1","repo":"https://github.com/sindresorhus/file-type","integrity":"sha512-sEB0oStmeLGtpmSAD88RDNuLsvhv4iC3u0lE25CUvfCULvj49xoQ3l3K525Vn+ZzsZ6DOLajQCV6RmhwwhqiJg=="},"status":"approved","effects":{"db":false,"fs":false,"network":false,"external_services":[]},"license":{"declared":"MIT","detected":"MIT","obligations":["preserve-notice"]},"quality":{"tests":{"date":"2026-10-10","passed":true,"command":"contract.test.ts (vitest, sandbox --network none)"}},"version":"0.1.0","category":"files","contract":{"errors":["see contract.test.ts"],"inputs":["see contract.test.ts"],"limits":["see contract.test.ts"],"outputs":["see contract.test.ts"]},"evidence":[{"ref":"npm registry metadata file-type@22.1.1","claim":"License MIT","origin":"maintainer"},{"ref":"https://api.osv.dev/v1/query","claim":"0 OSV advisories for file-type@22.1.1 on 2026-10-10","origin":"tested"},{"ref":"/Users/alexruiz/TURBINEH/YES-IF-API-PRODUCT/code-api-turbineh/bench/results/2026-10-10-certify-batch-2.json","claim":"Contract tests pass in the sandbox without network","origin":"tested"}],"security":{"scope":"Known advisories for this exact version (OSV). Transitive dependencies are scanned when the component is assembled.","tools":["osv.dev-api"],"findings":[],"scanned_at":"2026-10-10"},"relations":{"provides":["files.type-detection"],"requires":[],"conflicts":[],"tested_with":["contract-harness"]},"capability":{"cons":[],"does":"Detects real file type from magic bytes (not from the extension)","pros":[],"does_not":"Does not scan files for malware","use_cases":["client-portal","saas-crud"],"alternatives":[]},"integration":{"config":[],"install":"pnpm add file-type@22.1.1","strategy":"dependency","migrations":false}}