Skip to content
JS
Package

is-language-code

Is given string a language code (as per IANA)

v5.2.2, 6 Sept 2026MITESM onlyTypes: Bundled
$ npm install is-language-code

Key numbers

As of 25 Sept 2026
Weekly downloads
431.5k
+128% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
18 days ago
v5.2.2
GitHub stars
214
25 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
1,699

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 562.9k (25 Aug 2026)Low 105.6k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

431,458 downloads last week, 2,106,914 in the last month. The 12-month change of +128% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
891 in total
Latest version
5.2.2, 6 Sept 202618 days ago
First published
5 Jan 2020
Last push to GitHub
21 Sept 20263 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
1,699
Dependents on npm
5

Major versions

  1. v5 first release 5.0.0, 1 Dec 2022
  2. v4 first release 4.0.0, 9 Sept 2021
  3. v3 first release 3.0.0, 23 Jan 2021
  4. v2 first release 2.0.0, 28 Nov 2020
  5. v1 first release 1.0.0, 5 Jan 2020

Recent releases

VersionPublished
5.2.26 Sept 2026
5.2.11 Sept 2026
5.2.019 Aug 2026
5.1.315 Jan 2026
5.1.015 Oct 2025
5.0.2712 Oct 2025
5.0.268 Oct 2025
5.0.257 Oct 2025
5.0.1621 Jul 2025
5.0.152 Mar 2025
5.0.1231 Jan 2024
5.0.115 Jan 2024
5.0.1020 Dec 2023
5.0.911 Sept 2023
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.20.8
Runtimes
-
Unpacked size (npm)
134 kB
Dependencies (0)
None
npm install is-language-code
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-language-code@5.2.2/
  • unpkghttps://unpkg.com/is-language-code@5.2.2/
  • esm.shhttps://esm.sh/is-language-code@5.2.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.