# @cspell/filetypes

> Library to determine file types based upon the file name.

Latest version **10.3.3** (published 2026-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cspell/filetypes
pnpm add @cspell/filetypes
yarn add @cspell/filetypes
bun add @cspell/filetypes
```

## Health

**Score 75/100 (B)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.3.3 |
| Published | 2026-09-16 |
| First published | 2024-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=22.18.0 |
| Dependencies | 0 |
| Unpacked size | 27.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1686 |
| Author | Jason Dent |
| Maintainers | jason-dent |
| Keywords | cspell, filetypes |

## Links

- npm: https://www.npmjs.com/package/@cspell/filetypes
- Repository: https://github.com/streetsidesoftware/cspell
- Homepage: https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-filetypes#readme
- Issues: https://github.com/streetsidesoftware/cspell/labels/filetype
- npm.io page: https://npm.io/package/@cspell/filetypes

## Recent versions

- 10.3.3 (latest) — 2026-09-16
- 10.3.4-alpha.0 (next) — 2026-09-17
- 10.3.2 — 2026-09-15
- 10.3.2-alpha.0 — 2026-09-13
- 10.3.1 — 2026-09-13
- 10.3.1-alpha.1 — 2026-09-12
- 10.3.1-alpha.0 — 2026-09-12
- 10.3.0 — 2026-09-08
- 10.3.0-alpha.0 — 2026-09-04
- 10.2.2 — 2026-09-04
- 10.2.1 — 2026-09-03
- 10.2.0 — 2026-08-31
- 10.2.0-alpha.7 — 2026-08-30
- 10.2.0-alpha.5 — 2026-08-30
- 10.2.0-alpha.4 — 2026-08-30
- … 57 more at https://npm.io/package/@cspell/filetypes/versions

## README

# `@cspell/filetypes`

A library to help determine the type of a file.

## Install

```sh
npm install -S @cspell/filetypes
```

## Usage

```ts
import { findMatchingFileTypes } from '@cspell/filetypes';

console.log(findMatchingFileTypes('code.js')); // outputs: [ 'javascript' ]
```

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