{"name":"language-subtag-registry","version":"0.4.2","type":"module","description":"Full BCP 47 language subtag data from the official IANA repository, in JSON format with multiple indices.","homepage":"https://github.com/mattcg/language-subtag-registry","repository":{"type":"git","url":"git+https://github.com/mattcg/language-subtag-registry.git"},"contributors":[{"name":"Matthew Caruana Galizia","email":"mattcg@gmail.com"},{"name":"Guillaume Gérard","email":"guillaume.gerard88@gmail.com"}],"license":"CC0-1.0","scripts":{"test":"find ./data/json/*.json -exec ./node_modules/.bin/jsonlint -q {} \\;","import":"node scripts/importer"},"keywords":["iana","bcp47","subtags","rfc5646","language"],"devDependencies":{"jsonlint":"^1.6.3","eslint":"^9.17.0"},"gitHead":"adf86ad2d3f68a89c8b981d1bf704e67973f3142","_id":"language-subtag-registry@0.4.2","bugs":{"url":"https://github.com/mattcg/language-subtag-registry/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.6.4","dist":{"integrity":"sha512-d0zcIgHLTw18Z8GB3f3isK8Z6mM5bE0JmGEbzORsC7keOwe5Ex5ifAUBlHey7P7yEVFDyxQHN5+I/oCKKHAJag==","shasum":"e6b943e7ef813550e1d585d15aec28e101de70b0","tarball":"http://registry-npm.ywwl.com/language-subtag-registry/download/language-subtag-registry-0.4.2.tgz","fileCount":16,"unpackedSize":1550921,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFBKV1ySu9mdxi4pQhrjZnNVXShqSoZUhBEOtYcWOf94AiAd0RFw1Rg78pE7n8eEBKLV00W7UvT7sP7bKQnum2mPAg=="}],"size":199983,"noattachment":false,"key":"/language-subtag-registry/-/language-subtag-registry-0.4.2.tgz"},"_npmUser":{"name":"mcg","email":"mattcg@gmail.com"},"directories":{},"maintainers":[{"name":"mcg","email":"mattcg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/language-subtag-registry_0.4.2_1765289251771_0.2894297765889853"},"_hasShrinkwrap":false,"readme":"# IANA Language Tags #\n\n[![Open Data](https://assets.okfn.org/images/ok_buttons/od_80x15_blue.png)](http://opendefinition.org/)\n\nIANA's [official repository](http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) is in [record-jar](http://www.inter-locale.com/ID/draft-phillips-record-jar-01.html) format and is hard to parse. This project provides neatly organized JSON files representing that data.\n\nSee `data/` for all the JSON files available. The `registry.json` file contains all records in a flat array and `meta.json` contains its metadata. There's a separate JSON file for each 'scope' (e.g. `macrolanguage.json`) and 'type' (e.g. `language.json`). These files contain JSON objects keyed by tag or subtag and with the index integer for the corresponding entry in `registry.json` as a value. This makes lookups fast.\n\n## Updates ##\n\nThis project will be updated as the registry changes. Non-breaking updates will result in the patch version number being bumped.\n\nRun `npm run import` to force an update from the latest official IANA-hosted version. The registry file format is converted to JSON automatically and the files in `data/` are updated.\n\nIf there are changes, please make a pull request.\n\n## Usage ##\n\nSee [language-tags](https://github.com/mattcg/language-tags) for a Javascript API.\n\n## Credits and collaboration ##\n\nThe JSON database is licensed under the [Creative Commons Zero v1.0 Universal (CC0-1.0)](https://creativecommons.org/publicdomain/zero/1.0/legalcode) license.\n\nComments, feedback and suggestions are welcome. Please feel free to raise an issue or pull request. Enjoy.\n","publish_time":1765289251980,"_cnpm_publish_time":1765289251980,"dist-tags":{"latest":"0.4.2"}}