Skip to content
JS
Package

istextorbinary

Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.

v9.5.0, 29 Dec 2023Artistic-2.0ESM + CommonJSTypes: BundledTypeScript toolingNode.js utilities
$ npm install istextorbinary

Key numbers

As of 25 Sept 2026
Weekly downloads
2.9m
+98% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
2 years ago
v9.5.0
GitHub stars
159
18 forks
Open issues / PRs
9 / 1
Contributors
-
Commits, last 52 weeks
13

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 4.1m (25 Aug 2026)Low 1.1m (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.

2,920,206 downloads last week, 14,148,416 in the last month. The 12-month change of +98% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
047 in total
Latest version
9.5.0, 29 Dec 20232 years ago
First published
10 Dec 2013
Last push to GitHub
13 Sept 202611 days before the snapshot
Repository archived
No
Open issues
9
Open pull requests
1
Commits, last 52 weeks
13
Dependents on npm
332

Major versions

  1. v9 first release 9.0.0, 23 Nov 2023
  2. v8 first release 8.0.0, 14 Nov 2023
  3. v7 first release 7.0.0, 1 Nov 2023
  4. v6 first release 6.0.0, 31 Jul 2021
  5. v5 first release 5.0.0, 30 May 2020
  6. v4 first release 4.0.0, 11 May 2020
  7. v3 first release 3.0.0, 18 Nov 2019
  8. v2 first release 2.0.0, 2 May 2016
  9. v1 first release 1.0.0, 10 Dec 2013

Recent releases

VersionPublished
9.5.029 Dec 2023
9.4.027 Dec 2023
9.3.05 Dec 2023
9.2.024 Nov 2023
9.1.024 Nov 2023
9.0.023 Nov 2023
8.2.021 Nov 2023
8.1.014 Nov 2023
8.0.014 Nov 2023
7.0.01 Nov 2023
6.0.031 Jul 2021
5.15.029 Jul 2021
5.14.028 Jul 2021
5.13.027 Jul 2021
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=4
Runtimes
-
Unpacked size (npm)
101 kB
Dependencies (3)
editionstextextensionsbinaryextensions
npm install istextorbinary
  • jsDelivrhttps://cdn.jsdelivr.net/npm/istextorbinary@9.5.0/
  • unpkghttps://unpkg.com/istextorbinary@9.5.0/
  • esm.shhttps://esm.sh/istextorbinary@9.5.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.