Package Exports
- bcp47
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bcp47) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node BCP47
Node.js project
Parser for the BCP 47 language tag specification
Show me! | Availability | Compatibility | Documentation
Version: 1.0.0
Show me! ↑
var BCP47 = require ("bcp47");
//Eastern Armenian written in Latin script, as used in Italy
console.log (BCP47.parse ("hy-Latn-IT-arevela"));
/*
Prints:
{
language: {
language: "hy",
extlang: []
},
script: "Latn",
region: "IT",
variant: ["arevela"],
extension: [],
privateuse: [],
grandfathered: {
irregular: null,
regular: null
}
}
*/Availability ↑
Via npm:
npm install bcp47Or simply copying build/bcp47.js into your project's directory and require() accordingly.
Compatibility ↑
✔ Node *