https://github.com/sindresorhus/file-type
buffer detect file file-types javascript magic magic-numbers nodejs uint8array
Score: 35.2150019142402
Last synced: about 21 hours ago
JSON representation
Repository metadata:
Detect the file type of a file, stream, or data
- Host: GitHub
- URL: https://github.com/sindresorhus/file-type
- Owner: sindresorhus
- License: mit
- Created: 2014-04-24T10:58:09.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2026-10-29T11:16:05.000Z (4 days ago)
- Last Synced: 2026-10-29T11:19:54.499Z (4 days ago)
- Topics: buffer, detect, file, file-types, javascript, magic, magic-numbers, nodejs, uint8array
- Language: JavaScript
- Homepage:
- Size: 88.2 MB
- Stars: 4,341
- Watchers: 29
- Forks: 398
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- Funding: .github/funding.yml
- License: license
- Security: .github/security.md
-
Funding:
- Github: sindresorhus
- Open collective: sindresorhus
- Buy me a coffee: sindresorhus
- Custom: https://sindresorhus.com/donate
Owner metadata:
- Name: Sindre Sorhus
- Login: sindresorhus
- Email:
- Kind: user
- Description: Full-Time Open-Sourcerer. Focused on Swift & JavaScript. Makes macOS apps, CLI tools, npm packages.
- Website: https://sindresorhus.com/apps
- Location:
- Twitter: sindresorhus
- Company:
- Icon url: https://avatars.githubusercontent.com/u/170270?u=34acd557a042ac478d273a4621570cadb6b0bd89&v=4
- Repositories: 1111
- Last Synced at: 2024-10-29T21:14:09.635Z
- Profile URL: https://github.com/sindresorhus
GitHub Events
Total
- Create event: 54
- Delete event: 46
- Fork event: 41
- Issue comment event: 260
- Issues event: 76
- Pull request event: 117
- Pull request review comment event: 61
- Pull request review event: 63
- Push event: 186
- Release event: 10
- Watch event: 430
- Total: 1344
Last Year
- Create event: 2
- Delete event: 1
- Fork event: 2
- Issue comment event: 11
- Issues event: 3
- Pull request event: 8
- Pull request review comment event: 1
- Pull request review event: 2
- Push event: 15
- Release event: 3
- Watch event: 43
- Total: 91
Committers metadata
Last synced: 2 days ago
Total Commits: 646
Total Committers: 122
Avg Commits per committer: 5.295
Development Distribution Score (DDS): 0.534
Commits in past year: 61
Committers in past year: 8
Avg Commits per committer in past year: 7.625
Development Distribution Score (DDS) in past year: 0.279
| Name | Commits | |
|---|---|---|
| Sindre Sorhus | s****s@g****m | 301 |
| Borewit | B****t | 145 |
| Kevin Martensson | k****n@g****m | 16 |
| Mikael Finstad | f****n@g****m | 8 |
| Karl Hiramoto | k****o | 8 |
| Sylvain Mina | s****a@g****m | 7 |
| Yanis Benson | y****n@g****m | 6 |
| Matthew McEachen | m****w@p****m | 5 |
| Lingjun.Meng | j****r@f****m | 4 |
| Richie Bendall | r****l@g****m | 4 |
| Daniel Freire | d****7@g****m | 4 |
| Ben Brook | b****k | 4 |
| Arthur Verschaeve | c****t@a****e | 4 |
| Ryo Ota | n****k@p****m | 3 |
| Adam Lynch | c****t@a****m | 3 |
| Jacek Symonowicz | j****z@c****m | 3 |
| Andreas Gillström | a****m@g****m | 2 |
| t1st3 | c****t@t****g | 2 |
| hemanth.hm | h****m@g****m | 2 |
| Tom MacWright | t****w | 2 |
| Shinnosuke Watanabe | s****b@g****m | 2 |
| Nicolas Leclerc | n****s@c****m | 2 |
| N. D | s****r | 2 |
| Bjorn Stromberg | b****n@b****m | 2 |
| Cătălin Mariș | a****a@g****m | 2 |
| Dimitri Benin | B****r | 2 |
| 1000ch | s****i@g****m | 2 |
| Thomas Sileghem | t****m@n****k | 2 |
| Igor W | 9****z | 2 |
| Guilherme Serradilha | g****y@g****m | 2 |
| and 92 more... | ||
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 165
Total pull requests: 223
Average time to close issues: 5 months
Average time to close pull requests: 16 days
Total issue authors: 144
Total pull request authors: 42
Average comments per issue: 3.14
Average comments per pull request: 1.71
Merged pull request: 172
Bot issues: 0
Bot pull requests: 0
Past year issues: 8
Past year pull requests: 14
Past year average time to close issues: 16 days
Past year average time to close pull requests: 1 day
Past year issue authors: 8
Past year pull request authors: 5
Past year average comments per issue: 2.13
Past year average comments per pull request: 1.5
Past year merged pull request: 8
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- Borewit (9)
- Richienb (6)
- sindresorhus (4)
- sly7-7 (3)
- AaronPorts (2)
- eric-yuan-vanta (2)
- Tzvetelin88 (2)
- Mrcxt (1)
- somebody1234 (1)
- alex-e-leon (1)
- emimarz (1)
- JeffBeltran (1)
- Chathula (1)
- hongz1 (1)
- anatawa12 (1)
Top Pull Request Authors
- Borewit (144)
- sly7-7 (16)
- SethWen (4)
- dcfreire (4)
- mdorda (3)
- dioptre (2)
- JoeCap08055 (2)
- votruongan (2)
- bjornstar (2)
- bingtsingw (2)
- epicmet (2)
- matt-oakes (2)
- myndzi (2)
- luckv (2)
- Shashee99 (2)
Top Issue Labels
- enhancement (35)
- bug (30)
- help wanted (10)
- question (6)
- cannot reproduce (5)
- improvement (2)
- wontfix (2)
- DevOps (1)
- API change (1)
- debt (1)
Top Pull Request Labels
- improvement (26)
- enhancement (25)
- debt (23)
- bug (23)
- API change (16)
- documentation (11)
- update dependencies (8)
- security (3)
- dependency (2)
- DevOps (2)
Package metadata
- Total packages: 11
-
Total downloads:
- npm: 230,412,914 last-month
- Total docker downloads: 3,482,038,553
- Total dependent packages: 1,993 (may contain duplicates)
- Total dependent repositories: 597,637 (may contain duplicates)
- Total versions: 406
- Total maintainers: 19
- Total advisories: 3
npmjs.org: file-type
Detect the file type of a file, stream, or data
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 22.3.0 (published 4 days ago)
- Last Synced: 2026-11-01T09:35:12.715Z (1 day ago)
- Versions: 174
- Dependent Packages: 1,983
- Dependent Repositories: 597,635
- Downloads: 230,371,744 Last month
- Docker Downloads: 3,482,038,553
-
Rankings:
- Downloads: 0.019%
- Docker downloads count: 0.032%
- Dependent packages count: 0.039%
- Dependent repos count: 0.048%
- Average: 0.601%
- Stargazers count: 1.539%
- Forks count: 1.926%
- Maintainers (1)
-
Funding:
- https://github.com/sindresorhus/file-type?sponsor=1
- Advisories:
proxy.golang.org: github.com/sindresorhus/file-type
- Homepage:
- Documentation: https://pkg.go.dev/github.com/sindresorhus/file-type#section-documentation
- Licenses: mit
- Latest release: v22.2.0+incompatible (published 19 days ago)
- Last Synced: 2026-10-31T15:01:38.712Z (2 days ago)
- Versions: 170
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 1.18%
- Forks count: 1.549%
- Average: 5.771%
- Dependent packages count: 9.566%
- Dependent repos count: 10.787%
repo1.maven.org: org.webjars.npm:file-type
WebJar for file-type
- Homepage: https://www.webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.npm/file-type/
- Licenses: MIT
- Latest release: 21.0.0 (published about 1 year ago)
- Last Synced: 2026-10-31T15:01:43.220Z (2 days ago)
- Versions: 10
- Dependent Packages: 8
- Dependent Repositories: 1
-
Rankings:
- Stargazers count: 6.021%
- Dependent packages count: 7.341%
- Forks count: 11.185%
- Average: 11.298%
- Dependent repos count: 20.645%
npmjs.org: @mmcraven/file-type
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 17.1.3 (published over 4 years ago)
- Last Synced: 2026-10-31T15:01:44.023Z (2 days ago)
- Versions: 1
- Dependent Packages: 1
- Dependent Repositories: 0
- Downloads: 29 Last month
-
Rankings:
- Stargazers count: 2.095%
- Forks count: 2.479%
- Dependent packages count: 16.22%
- Average: 17.935%
- Dependent repos count: 25.306%
- Downloads: 43.576%
- Maintainers (1)
-
Funding:
- https://github.com/matthew-mcraven/file-type
npmjs.org: @alexssmusica/file-type
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 18.5.3 (published over 3 years ago)
- Last Synced: 2026-10-31T15:03:07.255Z (2 days ago)
- Versions: 3
- Dependent Packages: 1
- Dependent Repositories: 0
- Downloads: 39 Last month
-
Rankings:
- Stargazers count: 1.624%
- Forks count: 1.993%
- Downloads: 19.305%
- Average: 22.877%
- Dependent repos count: 37.497%
- Dependent packages count: 53.968%
- Maintainers (1)
-
Funding:
- https://github.com/sindresorhus/file-type?sponsor=1
npmjs.org: shimo-file-type
Detect the file type of a Buffer/Uint8Array
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 5.2.1 (published about 9 years ago)
- Last Synced: 2026-10-31T15:01:45.963Z (2 days ago)
- Versions: 2
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 8 Last month
-
Rankings:
- Stargazers count: 1.626%
- Forks count: 1.992%
- Dependent repos count: 10.768%
- Average: 25.531%
- Dependent packages count: 53.583%
- Downloads: 59.685%
- Maintainers (1)
npmjs.org: @depup/file-type
Detect the file type of a file, stream, or data (with updated dependencies)
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 22.1.1-depup.2 (published 22 days ago)
- Last Synced: 2026-10-31T15:14:09.496Z (2 days ago)
- Versions: 12
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 359 Last month
-
Rankings:
- Dependent repos count: 22.53%
- Average: 27.503%
- Dependent packages count: 32.475%
- Maintainers (1)
-
Funding:
- https://github.com/sindresorhus/file-type?sponsor=1
npmjs.org: @meistrari/file-type
Detect the file type of a file, stream, or data
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 22.0.0 (published about 1 year ago)
- Last Synced: 2026-10-31T15:02:37.995Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 40,596 Last month
-
Rankings:
- Dependent repos count: 23.683%
- Average: 28.923%
- Dependent packages count: 34.163%
- Maintainers (12)
-
Funding:
- https://github.com/sindresorhus/file-type?sponsor=1
npmjs.org: @kelvdra/file-type
Detect the file type of a file, stream, or data
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 1.1.0 (published about 1 year ago)
- Last Synced: 2026-10-31T15:01:36.970Z (2 days ago)
- Versions: 11
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 119 Last month
-
Rankings:
- Dependent repos count: 24.072%
- Average: 29.402%
- Dependent packages count: 34.733%
- Maintainers (1)
-
Funding:
- https://github.com/sindresorhus/file-type?sponsor=1
npmjs.org: file-type-detection
Detect the file type of a file, stream, or data
- Homepage: https://github.com/sindresorhus/file-type#readme
- Licenses: MIT
- Latest release: 21.0.0 (published over 1 year ago)
- Last Synced: 2026-10-31T15:02:58.101Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 20 Last month
-
Rankings:
- Dependent repos count: 24.436%
- Average: 29.851%
- Dependent packages count: 35.266%
- Maintainers (1)
-
Funding:
- https://github.com/sindresorhus/file-type?sponsor=1
repo1.maven.org: org.mvnpm:file-type
Detect the file type of a file, stream, or data
- Homepage: https://github.com/sindresorhus/file-type#readme
- Documentation: https://appdoc.app/artifact/org.mvnpm/file-type/
- Licenses: MIT
- Latest release: 22.3.0 (published 3 days ago)
- Last Synced: 2026-10-31T15:01:47.673Z (2 days ago)
- Versions: 21
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 34.658%
- Average: 42.106%
- Dependent packages count: 49.555%
Dependencies
- actions/checkout v6 composite
- actions/setup-node v6 composite
- @tokenizer/token ^0.3.0 development
- @types/node ^25.5.0 development
- ava ^7.0.0 development
- commonmark ^0.31.2 development
- esbuild ^0.28.0 development
- get-stream ^9.0.1 development
- tsd ^0.33.0 development
- xo ^2.0.2 development
- @tokenizer/inflate ^0.4.1
- strtok3 ^10.3.5
- token-types ^6.1.2
- uint8array-extras ^1.5.0