{"_id":"@austinbreslin/file-types","_rev":"4-6e6588380c3f7e533cd1cbc0f9c997e6","name":"@austinbreslin/file-types","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@austinbreslin/file-types","version":"1.0.0","license":"MIT","_id":"@austinbreslin/file-types@1.0.0","maintainers":[{"name":"austinbreslindev","email":"buckyaustin@gmail.com"}],"dist":{"shasum":"7bc9e761aae07edea952007b022b0f0e3a40c595","tarball":"https://registry.npmjs.org/@austinbreslin/file-types/-/file-types-1.0.0.tgz","fileCount":10,"integrity":"sha512-YiS3FTZO/vEbhceFJawD5MXHN608T5UmVh8jsMNoHA25tXqYQPxx/mWV7UhDiMYP4bYl6GI8P6FOkktZqEd3ew==","signatures":[{"sig":"MEQCIATi4uCeqp9URBz7deuItCgnENZuNdCr3WtpyfiI21TZAiAkM+9fLY6Ty9g8skBkjx6cf17uFJQnsGRq+SDRC4pNxA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":310732},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","$schema":"https://json.schemastore.org/package.json","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9984fcd871b519e11d76a89084a354e904c5cb65","scripts":{"dev":"NODE_ENV=development vite build --mode development --watch","lint":"tsc --noEmit && biome check ./src --config-path ../../biome.json","test":"vitest","build":"NODE_ENV=production rimraf ./dist && vite build && jampack ./dist","dev:lib":"NODE_ENV=development vite build --watch","build:dev":"NODE_ENV=development vite build --mode development"},"_npmUser":{"name":"austinbreslindev","email":"buckyaustin@gmail.com"},"_npmVersion":"10.9.0","description":"FileTypes is a Node.js package that provides an extensive list of file types and their corresponding MIME types. It aims to help developers quickly find and identify file extensions and associated media types.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"mime":"^4.0.4"},"_npmOperationalInternal":{"tmp":"tmp/file-types_1.0.0_1732755496102_0.645286446545289","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@austinbreslin/file-types","version":"1.0.1","keywords":["files","file-types","mime","mime-types","media-formats","extension-detection","file-signatures","content-type-mapping"],"license":"MIT","_id":"@austinbreslin/file-types@1.0.1","maintainers":[{"name":"austinbreslindev","email":"buckyaustin@gmail.com"}],"dist":{"shasum":"d6541b66a60e507dc6f9dae1f50d05180cd5726b","tarball":"https://registry.npmjs.org/@austinbreslin/file-types/-/file-types-1.0.1.tgz","fileCount":10,"integrity":"sha512-r8eePL0lTEkjAB0juFk34WcZA/WKgpx6MDFmpkCBR3HWSyDSTNaLkFKeTcfz9Bu85ErAjEqWo60sYUujZMTZNQ==","signatures":[{"sig":"MEUCIE8QOKxgAcZeEOZZgOYqrKi9J6uvbXb2BudorbxZ0OyBAiEAiCbvvvwFwgWyen7aeKP9gedvPGpxRZMH+sNM+WTXiNo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":311177},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","$schema":"https://json.schemastore.org/package.json","engines":{"node":">=18","pnpm":">=9.12.1"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5ce74c88436d6b4f5220a80e10ce114123e60f84","scripts":{"dev":"NODE_ENV=development vite build --mode development --watch","lint":"tsc --noEmit && biome check ./src --config-path ../../biome.json","test":"vitest","build":"NODE_ENV=production rimraf ./dist && vite build && jampack ./dist","dev:lib":"NODE_ENV=development vite build --watch","build:dev":"NODE_ENV=development vite build --mode development"},"_npmUser":{"name":"austinbreslindev","email":"buckyaustin@gmail.com"},"repository":{"url":"git+https://github.com/AustinBreslinDev/libs/.git","type":"git"},"_npmVersion":"10.9.0","description":"FileTypes is a Node.js package that provides an extensive list of file types and their corresponding MIME types. It aims to help developers quickly find and identify file extensions and associated media types.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.12.1","devDependencies":{"mime":"^4.0.4"},"_npmOperationalInternal":{"tmp":"tmp/file-types_1.0.1_1732756246542_0.6698034465367533","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@austinbreslin/file-types","version":"1.0.2","keywords":["files","file-types","mime","mime-types","media-formats","extension-detection","file-signatures","content-type-mapping"],"license":"MIT","_id":"@austinbreslin/file-types@1.0.2","maintainers":[{"name":"austinbreslindev","email":"buckyaustin@gmail.com"}],"homepage":"https://github.com/AustinBreslinDev/libs/","dist":{"shasum":"0ba2c9661faa893cbfc20c6cda07420daa697df1","tarball":"https://registry.npmjs.org/@austinbreslin/file-types/-/file-types-1.0.2.tgz","fileCount":10,"integrity":"sha512-asQALw58A7m6E4GHHOlTRgzbTLMnNmI/+XeIP3LKWHhzgJ9uElDU5wo213c9OHdz2a6cnYzXkSAN2untV3A2kw==","signatures":[{"sig":"MEYCIQDOCRoUN8mz7cfnrECvGZxxEfCqzOBZgCXHExP34ztSHwIhAObinNWDJQ+udH9hYtnpNpUC06p2QA2bqjNUIWvYW3yz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":311238},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","$schema":"https://json.schemastore.org/package.json","engines":{"node":">=18","pnpm":">=9.12.1"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d6dd85fae31016f94bddf783354578d3a29e0316","scripts":{"dev":"NODE_ENV=development vite build --mode development --watch","lint":"tsc --noEmit && biome check ./src --config-path ../../biome.json","test":"vitest","build":"NODE_ENV=production rimraf ./dist && vite build && jampack ./dist","dev:lib":"NODE_ENV=development vite build --watch","build:dev":"NODE_ENV=development vite build --mode development"},"_npmUser":{"name":"austinbreslindev","email":"buckyaustin@gmail.com"},"repository":{"url":"git+https://github.com/AustinBreslinDev/libs/.git","type":"git"},"_npmVersion":"10.9.0","description":"FileTypes is a Node.js package that provides an extensive list of file types and their corresponding MIME types. It aims to help developers quickly find and identify file extensions and associated media types.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.12.1","devDependencies":{"mime":"^4.0.4"},"_npmOperationalInternal":{"tmp":"tmp/file-types_1.0.2_1732756875608_0.333045395960361","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@austinbreslin/file-types","version":"1.0.3","keywords":["files","file-types","mime","mime-types","media-formats","extension-detection","file-signatures","content-type-mapping"],"license":"MIT","_id":"@austinbreslin/file-types@1.0.3","maintainers":[{"name":"austinbreslindev","email":"buckyaustin@gmail.com"}],"homepage":"https://github.com/AustinBreslinDev/libs/","dist":{"shasum":"ce8c421f3e8ccce9b1544cf6dee3831373c1c4e3","tarball":"https://registry.npmjs.org/@austinbreslin/file-types/-/file-types-1.0.3.tgz","fileCount":10,"integrity":"sha512-qtUmZn7LQBSmgo5kTAYv1bKrJrWJWgUxu7NfvFiA8vRIvMqZgbxR8ISyMegq9ctn+G56d/FlAwPed0+SJ4uv+g==","signatures":[{"sig":"MEUCIQCCcKKMs3lX9PWxU4QJrPomnnBHnE17BEKfb3e0wgy4qwIgUb6+YPE4GpLif5gNcaCtncnb7qSx215Ym9hqlLrSHig=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":309798},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","$schema":"https://json.schemastore.org/package.json","engines":{"node":">=18","pnpm":">=9.12.1"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d25e3f4d7b7d6861ba243ff9e668d77fafd37745","scripts":{"dev":"NODE_ENV=development vite build --mode development --watch","lint":"tsc --noEmit && biome check ./src --config-path ../../biome.json","test":"vitest","build":"NODE_ENV=production rimraf ./dist && vite build && jampack ./dist","dev:lib":"NODE_ENV=development vite build --watch","build:dev":"NODE_ENV=development vite build --mode development"},"_npmUser":{"name":"austinbreslindev","email":"buckyaustin@gmail.com"},"repository":{"url":"git+https://github.com/AustinBreslinDev/libs/.git","type":"git"},"_npmVersion":"10.9.0","description":"FileTypes is a Node.js package that provides an extensive list of file types and their corresponding MIME types. It aims to help developers quickly find and identify file extensions and associated media types.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"packageManager":"pnpm@9.12.1","devDependencies":{"mime":"^4.0.4"},"_npmOperationalInternal":{"tmp":"tmp/file-types_1.0.3_1732757687411_0.6775152531327411","host":"s3://npm-registry-packages"}},"1.0.4":{"$schema":"https://json.schemastore.org/package.json","name":"@austinbreslin/file-types","version":"1.0.4","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"build":"NODE_ENV=production rimraf ./dist && vite build && jampack ./dist","build:dev":"NODE_ENV=development vite build --mode development","dev":"NODE_ENV=development vite build --mode development --watch","lint":"tsc --noEmit && biome check ./src --config-path ../../biome.json","dev:lib":"NODE_ENV=development vite build --watch","test":"vitest","test:debug":"npm run test -- --inspect --no-file-parallelism --ui"},"devDependencies":{"mime":"^4.0.4"},"license":"MIT","keywords":["files","file-types","mime","mime-types","media-formats","extension-detection","file-signatures","content-type-mapping"],"repository":{"url":"git+https://github.com/AustinBreslinDev/libs/.git","type":"git"},"homepage":"https://github.com/AustinBreslinDev/libs/","packageManager":"pnpm@9.15.2","engines":{"pnpm":">=9.15.2","node":">=20"},"_id":"@austinbreslin/file-types@1.0.4","gitHead":"3dc7b31666e22d66ccf4127bd34c4d7cfe2b01ca","description":"FileTypes is a Node.js package that provides an extensive list of file types and their corresponding MIME types. It aims to help developers quickly find and identify file extensions and associated media types.","_nodeVersion":"22.12.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-RvqrY3sE70hN3AhAdp2RI6qdmWe57Fkc5nvjXFVzSA3giey3xsOGDmrGXzNd3AAh7KZ7V9ZEoPSfdAStAWAnbQ==","shasum":"824205ed596322820902d4e14cb15f0286fefe2b","tarball":"https://registry.npmjs.org/@austinbreslin/file-types/-/file-types-1.0.4.tgz","fileCount":10,"unpackedSize":322274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEH90MxACIICLjXf5NIKdY7kug9ZbsXl11VjuIKdwN8sAiEA8q3EJPCdRQWhRWt+aZOlzwhdtiYx7l4u8+vKaYOI4bQ="}]},"_npmUser":{"name":"austinbreslindev","email":"buckyaustin@gmail.com"},"directories":{},"maintainers":[{"name":"austinbreslindev","email":"buckyaustin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/file-types_1.0.4_1736714388810_0.3477864745716419"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-28T00:58:16.034Z","modified":"2025-01-12T20:39:49.209Z","1.0.0":"2024-11-28T00:58:16.272Z","1.0.1":"2024-11-28T01:10:46.748Z","1.0.2":"2024-11-28T01:21:15.824Z","1.0.3":"2024-11-28T01:34:47.578Z","1.0.4":"2025-01-12T20:39:48.997Z"},"license":"MIT","homepage":"https://github.com/AustinBreslinDev/libs/","keywords":["files","file-types","mime","mime-types","media-formats","extension-detection","file-signatures","content-type-mapping"],"repository":{"url":"git+https://github.com/AustinBreslinDev/libs/.git","type":"git"},"description":"FileTypes is a Node.js package that provides an extensive list of file types and their corresponding MIME types. It aims to help developers quickly find and identify file extensions and associated media types.","maintainers":[{"name":"austinbreslindev","email":"buckyaustin@gmail.com"}],"readme":"# FileTypes\n\nFileTypes is a Node.js package that provides an extensive list of file types and their corresponding MIME types.\nIt aims to help developers quickly find and identify file extensions and associated media types.\n\n## Install\n\n### npm\n\n```sh\nnpm install --save @austinbreslin/file-types\n```\n\n### pnpm\n\n```sh\npnpm install @austinbreslin/file-types\n```\n\n## Usage\n\nFileTypes is compatible with TypeScript, providing full type definitions for enhanced code completion and reliability.\n\n### Module (TypeScript)\n\n```typescript\nimport { FileTypes } from '@austinbreslin/file-types';\n\nconsole.log(JSON.stringify(FileTypes, null, 4));\n/*\n[\n  {\n    \"fileClass\": \"Multimedia\",\n    \"fileExtensions\": [\"AVIF\"],\n    \"headerHex\": [0, 0, 0],\n    \"mimeTypes\": [\"image/avif\"],\n    \"headerOffset\": 0\n  },\n  ...\n]\n*/\n```\n\n### CommonJS\n\n```javascript\nconst { FileTypes } = require('@austinbreslin/file-types');\n```\n\n## Notes\n\n- The file extensions and MIME types arrays are of equal length.\n- Trailer Hex and Header Hex are represented as hexadecimal numbers.\n\n## Example Object\n\n```json\n{\n    \"fileClass\": \"Multimedia\",\n    \"fileExtensions\": [\"MP4\"],\n    \"headerHex\": [0, 0, 0, 20, 102, 116, 121, 112, 105, 115, 111, 109],\n    \"mimeTypes\": [\"video/mp4\"],\n    \"headerOffset\": 0\n}\n```\n\n## How It Works\n\nFileTypes is generated using data from two primary sources: the `mime` package and the online library by Gary Kessler.\nThis combination allows for a comprehensive database of file signatures and types.\n\n## Package Size\n\nThe compiled JavaScript bundle size for FileTypes is approximately 75KB, making it lightweight yet informative\nfor developers working on various projects.\n\n## Contribution\n\nContributions to FileTypes are welcome! If you notice any errors or omissions in the file type definitions, please submit an issue or pull request. Contributions should follow the Node.js Code Conventions.\n\n## License\n\nFileTypes is distributed under the [MIT License](license).\n\n## Credit to\n[mime](https://github.com/broofa/mime)\n[FileSigs](https://www.garykessler.net/library/file_sigs.html)\n\n","readmeFilename":"readme.md"}