# is-archive

> Check if a file path is an archive file

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

## Install

```sh
npm install is-archive
pnpm add is-archive
yarn add is-archive
bun add is-archive
```

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-04-30 |
| First published | 2015-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18.20 |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | extensions, extension, file, path, check, detect, is, archive, compressed, compress, archive, zip, tar, rar, 7z |

## Links

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

## Dependencies (1)

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

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2024-04-30
- 2.0.0 — 2019-04-18
- 1.0.1 — 2015-05-25
- 1.0.0 — 2015-05-17

## README

# is-archive

> Check if a file path is an archive file

## Install

```sh
npm install is-archive
```

## Usage

```js
import isArchive from 'is-archive';

isArchive('source/unicorn.zip');
//=> true

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

## Related

- [archive-extensions](https://github.com/sindresorhus/archive-extensions) - List of archive file extensions

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