Package
isbinaryfile
Detects if a file is binary in Node.js. Similar to Perl's -B.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 14.1m
- +83% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 9 months ago
- v6.0.0
- GitHub stars
- 176
- 26 forks
- Open issues / PRs
- 0 / 1
- Contributors
- -
- Commits, last 52 weeks
- 37
Downloads
Last week 2026-09-15 to 2026-09-21
14,052,918 downloads last week, 63,305,568 in the last month. The 12-month change of +83% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 240 in total
- Latest version
- 6.0.0, 5 Dec 20259 months ago
- First published
- 9 Oct 2012
- Last push to GitHub
- 21 Sept 20264 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 1
- Commits, last 52 weeks
- 37
- Dependents on npm
- 870
Major versions
- v6 first release 6.0.0, 5 Dec 2025
- v5 first release 5.0.0, 25 Mar 2022
- v4 first release 4.0.0, 8 Jan 2019
- v3 first release 3.0.0, 5 Aug 2015
- v2 first release 2.0.0, 24 Dec 2013
- v1 first release 1.0.0, 2 Dec 2013
- v0 first release 0.1.0, 9 Oct 2012
Recent releases
| Version | Published |
|---|---|
| 6.0.0 | 5 Dec 2025 |
| 5.0.7 | 11 Nov 2025 |
| 5.0.6 | 28 Aug 2025 |
| 5.0.5 | 28 Aug 2025 |
| 5.0.4 | 23 Oct 2024 |
| 5.0.3 | 13 Oct 2024 |
| 5.0.2 | 14 Feb 2024 |
| 5.0.1 | 14 Feb 2024 |
| 5.0.0 | 25 Mar 2022 |
| 4.0.10 | 25 Mar 2022 |
| 4.0.9 | 24 Mar 2022 |
| 4.0.8 | 29 Apr 2021 |
| 4.0.6 | 3 Apr 2020 |
| 4.0.5 | 17 Mar 2020 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >= 24.0.0
- Runtimes
- -
- Unpacked size (npm)
- 20 kB
- Dependencies (0)
- None
npm install isbinaryfile- jsDelivr
https://cdn.jsdelivr.net/npm/isbinaryfile@6.0.0/ - unpkg
https://unpkg.com/isbinaryfile@6.0.0/ - esm.sh
https://esm.sh/isbinaryfile@6.0.0
Indexability: Indexed.