Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

lang-codes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

lang-codes

Easily searchable ISO 639-1/2/3 Language codes

unpublished
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
357
128.85%
Maintainers
1
Weekly downloads
 
Created
Source

lang-codes

package version package downloads standard-readme compliant package license make a pull request

Easily searchable ISO 639-1/2/3 Language codes

Table of Contents

About

Easily searchable ISO 639-1/2/3 language codes with English and local names (under 6kB gzipped). Data extracted from nodejs-langs.

Install

This project uses node and npm.

$ npm install lang-codes
$ # OR
$ yarn add lang-codes

Usage

import find from 'lang-codes'

find('afr') // { 'name': 'Afrikaans', 'local': 'Afrikaans', '1': 'af', '2': 'afr', '2T': 'afr', '2B': 'afr', '3': 'afr' }
find(/af/) // [ { '1': 'aa', '2': 'aar', '3': 'aar', name: 'Afar', local: 'Afaraf', '2T': 'aar', '2B': 'aar' }, { '1': 'af', '2': 'afr', '3': 'afr', name: 'Afrikaans', local: 'Afrikaans', '2T': 'afr', '2B': 'afr' } ]
find('zul', { props: 'name' }) // Zulu

Contribute

  • Fork it and create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

License

MIT

Keywords

lang

FAQs

Package last updated on 24 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts