Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

country-to-language

Country code to language code.

country, country-code, language, language-code, iso

readme

Country-to-language

Usage

const { countryToLanguage } = require("country-to-language");

console.log(countryToLanguage("jp"))//returns ja