{"library":"bcp47","type":"library","category":null,"description":"The `bcp47` package provides a parser for BCP 47 language tags, a critical standard used in internationalization (i18n) for identifying human languages. The current stable version is `1.2.0`, with a rapid succession of recent releases in April 2026, indicating active development or a recent relaunch. This library's core function is to parse a BCP 47 tag and return a structured object containing all extracted components, or `null` if the tag is syntactically invalid, which acts as an implicit validation mechanism. Its key differentiator lies in its focused adherence to the BCP 47 specification, offering a lightweight and precise tool for tasks like content negotiation, managing localization resources, or configuring user interface languages. Unlike broader i18n frameworks, `bcp47` provides a dedicated, minimalist solution for this specific parsing requirement.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript","bcp47","parser","internationalization","i18n","language","locale"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bcp47","imports":["import { parse } from 'bcp47';","import { stringify } from 'bcp47';","const { parse } = require('bcp47');"]},{"cmd":"yarn add bcp47","imports":[]},{"cmd":"pnpm add bcp47","imports":[]}],"homepage":null,"github":"https://github.com/gagle/node-bcp47","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bcp47","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bcp47/compatibility"}}