Skip to content
JS
Package

isbinaryfile

Detects if a file is binary in Node.js. Similar to Perl's -B.

v6.0.0, 5 Dec 2025MITESM onlyTypes: BundledNode.js utilities
$ npm install isbinaryfile

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
05m10m15m20mSept 2025Mar 2026Sept 2026High 16.9m (25 Aug 2026)Low 4.2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v6 first release 6.0.0, 5 Dec 2025
  2. v5 first release 5.0.0, 25 Mar 2022
  3. v4 first release 4.0.0, 8 Jan 2019
  4. v3 first release 3.0.0, 5 Aug 2015
  5. v2 first release 2.0.0, 24 Dec 2013
  6. v1 first release 1.0.0, 2 Dec 2013
  7. v0 first release 0.1.0, 9 Oct 2012

Recent releases

VersionPublished
6.0.05 Dec 2025
5.0.711 Nov 2025
5.0.628 Aug 2025
5.0.528 Aug 2025
5.0.423 Oct 2024
5.0.313 Oct 2024
5.0.214 Feb 2024
5.0.114 Feb 2024
5.0.025 Mar 2022
4.0.1025 Mar 2022
4.0.924 Mar 2022
4.0.829 Apr 2021
4.0.63 Apr 2020
4.0.517 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/isbinaryfile@6.0.0/
  • unpkghttps://unpkg.com/isbinaryfile@6.0.0/
  • esm.shhttps://esm.sh/isbinaryfile@6.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.