# is-binary-path

> Check if a file path is a binary file

Latest version **3.0.0** (published 2024-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-binary-path
pnpm add is-binary-path
yarn add is-binary-path
bun add is-binary-path
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-04-30 |
| First published | 2015-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18.20 |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 49 |
| Author | Sindre Sorhus |
| Maintainers | paulmillr, sindresorhus |
| Keywords | binary, extensions, extension, file, path, check, detect, is |

## Links

- npm: https://www.npmjs.com/package/is-binary-path
- Repository: https://github.com/sindresorhus/is-binary-path
- Homepage: https://github.com/sindresorhus/is-binary-path#readme
- Issues: https://github.com/sindresorhus/is-binary-path/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is-binary-path

## Dependencies (1)

- [binary-extensions](https://npm.io/package/binary-extensions.md) ^3.0.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2024-04-30
- 2.1.0 — 2019-04-19
- 2.0.1 — 2019-03-27
- 2.0.0 — 2016-09-14
- 1.0.1 — 2015-05-25
- 1.0.0 — 2015-01-24

## README

# is-binary-path

> Check if a file path is a binary file

## Install

```sh
npm install is-binary-path
```

## Usage

```js
import isBinaryPath from 'is-binary-path';

isBinaryPath('source/unicorn.png');
//=> true

isBinaryPath('source/unicorn.txt');
//=> false
```

## Related

- [binary-extensions](https://github.com/sindresorhus/binary-extensions) - List of binary file extensions
- [is-text-path](https://github.com/sindresorhus/is-text-path) - Check if a filepath is a text file

---
_Source: https://npm.io/package/is-binary-path · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
