# linguist-languages

> Linguist languages data

Latest version **9.5.0** (published 2026-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install linguist-languages
pnpm add linguist-languages
yarn add linguist-languages
bun add linguist-languages
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.5.0 |
| Published | 2026-08-30 |
| First published | 2018-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 576.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 29 |
| Author | Ika |
| Maintainers | fisker, ikatyang |
| Keywords | data, json, language, linguist |

## Links

- npm: https://www.npmjs.com/package/linguist-languages
- Repository: https://github.com/ikatyang-collab/linguist-languages
- Homepage: https://github.com/ikatyang-collab/linguist-languages#readme
- Issues: https://github.com/ikatyang-collab/linguist-languages/issues
- npm.io page: https://npm.io/package/linguist-languages

## 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

- 9.5.0 (latest) — 2026-08-30
- 6.2.1-dev.20180706 (next) — 2018-07-06
- 9.4.0 — 2026-06-08
- 9.3.2 — 2026-04-09
- 9.3.1 — 2026-01-18
- 9.3.0 — 2026-01-18
- 9.2.0 — 2026-01-01
- 9.1.11 — 2025-12-03
- 9.1.0 — 2025-11-01
- 9.0.0 — 2025-09-10
- 8.2.0 — 2025-09-10
- 8.1.0 — 2025-08-07
- 8.0.0 — 2025-06-05
- 7.31.2 — 2025-06-04
- 7.31.1 — 2025-06-04
- … 24 more at https://npm.io/package/linguist-languages/versions

## README

# linguist-languages

[![npm](https://img.shields.io/npm/v/linguist-languages.svg)](https://www.npmjs.com/package/linguist-languages)
[![build](https://img.shields.io/github/actions/workflow/status/ikatyang/linguist-languages/test.yml)](https://github.com/ikatyang/linguist-languages/actions?query=branch%3Amain)

[Linguist `languages.yaml`](https://github.com/github/linguist/blob/main/lib/linguist/languages.yml) data in JS format.

## Install

```sh
npm install linguist-languages
```

## Usage

Import specific language data

```js
import { JavaScript as javascript, 'F*' as FStar } from 'linguist-languages'
```

Or

```js
import javascript from 'linguist-languages/data/JavaScript'
```

> [!IMPORTANT]
> Due to file system and runtime limitation, the file location is not always the same as language name.
> Eg: `F*` data is saved in `data/F_2a_.mjs`
>
> ```js
> import FStar from 'linguist-languages/data/F_2a_'
> ```

Import all languages data

```js
import * as languages from 'linguist-languages'

const javascript = languages.JavaScript
```

## Development

```sh
# lint
pnpm run lint

# build
pnpm run build

# test
pnpm run test
```

## License

MIT © [Ika](https://github.com/ikatyang)

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