bcp47

Parser for the BCP 47 language tag specification

npm install bcp47
15 downloads in the last month

bcp47

Parser for the BCP 47 language tag specification

NPM version Build Status

NPM installation

BCP: 47

Functions


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 folder to see what information returns.

npm loves you