# bcp47

> Parser for the BCP 47 language tag specification

Latest version **1.1.2** (published 2015-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install bcp47
pnpm add bcp47
yarn add bcp47
bun add bcp47
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2015-02-06 |
| First published | 2012-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Gabriel Llamas |
| Maintainers | gagle |
| Keywords | bcp47, parser, internationalization, i18n, language, locale |

## Links

- npm: https://www.npmjs.com/package/bcp47
- Repository: https://github.com/gagle/node-bcp47
- Issues: https://github.com/gagle/node-bcp47/issues
- npm.io page: https://npm.io/package/bcp47

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2015-02-06
- 1.1.1 — 2015-01-17
- 1.1.0 — 2014-01-01
- 1.0.1 — 2013-01-20
- 1.0.0 — 2012-10-27
- 0.0.1 — 2012-07-31

## README

bcp47
=====

#### Parser for the BCP 47 language tag specification ####

[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]
[![coveralls][coveralls-image]][coveralls-url]

[BCP 47][bcp47]

___module_.parse(tag) : Object__  
Parses the language tag and returns an object with all the available information. If the tag is not valid it returns null. Look at the [examples][examples] folder to see what information returns.

[npm-image]: https://img.shields.io/npm/v/bcp47.svg?style=flat
[npm-url]: https://npmjs.org/package/bcp47
[travis-image]: https://img.shields.io/travis/gagle/node-bcp47.svg?style=flat
[travis-url]: https://travis-ci.org/gagle/node-bcp47
[coveralls-image]: https://img.shields.io/coveralls/gagle/node-bcp47.svg?style=flat
[coveralls-url]: https://coveralls.io/r/gagle/node-bcp47
[bcp47]: http://tools.ietf.org/rfc/bcp/bcp47.txt
[examples]: https://github.com/gagle/node-bcp47/tree/master/examples

---
_Source: https://npm.io/package/bcp47 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
