Speaker count for 450+ languages.
- What is this?
- When should I use this?
- Install
- Use
- API
- Types
- Compatibility
- Security
- Related
- Contribute
- License
This package provides speaker counts for many languages. Painstakingly crawled by hand from OHCHR.
👉 Note: the numbers are (in some cases, very) rough estimates or out-of-date.
You can use this package if you want to get a (comparative) estimate of how many folks speak a certain language.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install speakers
In Deno with esm.sh
:
import {speakers} from 'https://esm.sh/speakers@2'
In browsers with esm.sh
:
<script type="module">
import {speakers} from 'https://esm.sh/speakers@2?bundle'
</script>
import {speakers} from 'speakers'
console.log(speakers.eng) // => 322000000
console.log(speakers.jpn) // => 125000000
console.log(speakers.por) // => 182000000
console.log(speakers.cmn) // => 885000000
This package exports the identifier speakers
.
There is no default export.
Map of ISO 639-3 codes to speaker counts (number
).
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
wooorm/bcp-47
— parse and stringify BCP 47 language tagswooorm/bcp-47-match
— match BCP 47 language tags with language ranges per RFC 4647wooorm/iso-639-2
— ISO 639-2 codeswooorm/iso-639-3
— ISO 639-3 codeswooorm/iso-15924
— ISO 15924 codeswooorm/un-m49
— UN M49 codes
Yes please! See How to Contribute to Open Source.