# text-extensions

> List of text file extensions

Latest version **3.1.0** (published 2024-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install text-extensions
pnpm add text-extensions
yarn add text-extensions
bun add text-extensions
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2024-10-29 |
| First published | 2015-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18.20 |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 60 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | text, ascii, extensions, extension, file, json, list, array |

## Links

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 3.1.0 (latest) — 2024-10-29
- 3.0.0 — 2024-04-30
- 2.4.0 — 2021-01-12
- 2.3.0 — 2020-11-28
- 2.2.0 — 2020-11-24
- 2.1.0 — 2020-02-16
- 2.0.0 — 2019-04-19
- 1.9.0 — 2018-10-13
- 1.8.0 — 2018-09-11
- 1.7.0 — 2017-10-03
- 1.6.0 — 2017-09-05
- 1.5.0 — 2017-06-06
- 1.4.0 — 2017-01-07
- 1.3.3 — 2015-09-23
- 1.3.2 — 2015-05-19
- … 6 more at https://npm.io/package/text-extensions/versions

## README

# text-extensions

> List of text file extensions

The list is just a [JSON file](text-extensions.json) and can be used anywhere.

## Install

```sh
npm install text-extensions
```

## Usage

```js
import textExtensions from 'text-extensions';

console.log(textExtensions);
//=> ['asp', 'aspx', …]
```

## Related

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

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