{"_id":"bcp-47-match","_rev":"9-70de4d364886b0bb11081a95155b288c","name":"bcp-47-match","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"bcp-47-match","version":"1.0.0","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","chalk":"^2.4.1","nyc":"^12.0.0","prettier":"^1.11.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.4.3","xo":"^0.21.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.js -s bcp47Match > bcp-47-match.js","build-mangle":"browserify index.js -s bcp47Match -p tinyify > bcp-47-match.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"7f726bc9ed245b63c87b597952135d4d00981e3b","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@1.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-6rzWe2U70JHrYfBqBnhoeV7HykhmCQ6X2RrBcbpkyCwtNpkGadr3m3LF8ZLXpQ7qrsLCOm3eis2lsVemkLsvHg==","shasum":"24e1ffc4b6905177e299c21756b6c9f347fe573e","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-1.0.0.tgz","fileCount":4,"unpackedSize":15955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUl6lCRA9TVsSAnZWagAA//8P/1p7wkHhz9uaISziSmJ1\nG52l44X73qB3KzlH44gzDZWFZtMBqhu2uK/tiEzcsODkXmrf6fzA3xlzZvsM\nQZUvEZYyjNjcxpEphTkaU/pNaODHLRh6I/4vBvcfBnS9RGEi48DfoHujowE5\nc0p2ihRtpCVors8lyxJXEEeXAmFhXUqFyYfvYOqZgKTbArIToY92hDTq6tnf\nGeRWHLjEae86hLw7Cn1G+hoEIpMaWDuB93oFr76tIlhUXUUycxjEMmGfVlAa\nHp5Nw2XYzcTvm7kVuWVEg1db5Msoz4knZwES5DvcmrsUSdga9JAhrOXN+Ln/\nmGZjm7PJN6/l9cpDilCUbWRYyjSmurMfWxQJB63+js40UsGo/fwp7LxHk64u\nyBawiAMBgDYKPbJaBhCyDKpH7PDdQduODBzP7sTDKhUQ3OgPcyCYEE+nYahj\nxJBtJx7mf9t6hxry4uzBvB7v0aUm6tYbjnNrVUUhloyjRoPtecLOxPu4pziI\nbdxP8kBKaf7kxQnZj/y4IgSGckgJZB3rnA3yrcDRlEJ1BXFH+xLVNLPY2o6W\nKCb6zhIUCRrVYugxi4Qmi64OkpqEVVPNep/MWn6mWaYnH9iyWGvjeAIUDkAZ\nHt04t3w1sojz3vknsJz5luL2B6ZtD76HXK5r3hPXa4946ROK3Gna3LmInRFY\naXrG\r\n=AOfG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCB9Ee4IQGxUdgwgcxB1h7RsSKqIFnH8wOEkIs2Q/KpoAIhAI+vIBaEyUNHOmbDMXtvQEybvUOoSaKmf0luM34n4szH"}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_1.0.0_1532124837544_0.3006539440057172"},"_hasShrinkwrap":false},"1.0.1":{"name":"bcp-47-match","version":"1.0.1","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","chalk":"^2.4.1","nyc":"^14.0.0","prettier":"^1.11.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.4.3","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify index.js -s bcp47Match > bcp-47-match.js","build-mangle":"browserify index.js -s bcp47Match -p tinyify > bcp-47-match.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"50d641411eb35e01259995646653f7943cf4e28f","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@1.0.1","_nodeVersion":"11.9.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-fqIXzS4NdlT+Engo/OSsH3pGy7jW0DRTXtvJJ/gPVQcqpaGv1X7ht5GW5B2PjB8Pl2+Cz8rDV8bkRZFvxr/KjA==","shasum":"1c7fdf17a589e02bc89f534012bf3395b6779b8d","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-1.0.1.tgz","fileCount":4,"unpackedSize":16320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2oMtCRA9TVsSAnZWagAAHNAQAI4lnHyiVgG+Nim0YQOn\ntbHxg4YM4o+vqOWzWmZ2BnT8DPBVOHf3HmDxSmfT55qepv6T0kTEjlW80+V5\nGYFbHTpGf15VF+WQISnJWYsAufQBni6mSc3Cht+u/u4pR4om0Qd3S+IEoNxR\nUtLyFQSE9BQ+jTKDnFCzK/hWSegMCXFPEtk/QWo/1/tb/PDSkJVlF2TFMNMj\ncogRmKy3zkjJ/6iRPAFrlCNMuKkRkXFCFm/MSoEHGDldLeLZH3096V+yOH2N\nVws3fsvdzYy8EpZTFDr5tjgYFKMlnlpDH7Z+MgaR/fVJy0uzOakcBrvdm8eK\nvoSEeTRBnviMuY8qwUCftOgp/xqmeK2gy8Jtg3d8wuabGlot6Ao3yqYk+K5y\n5r2HyCY2B7JmYtXVqtgz92HnnXl4gzlP8OSvikgNllnF2ReEeoY5be9meHMH\nYbcoF6P0FQgKZLaWykAfN8UKuhOU9jMHBoOxU+r8d6A8y2B+eplB8m/bkSK0\nevoTh4DKyvHiN7zRV+R5nGXFIfzlDNCF79x9wovtxgZgtGn7gowO0ClfhBUl\nMH2jl+bd0FNBSCrsWzswL416+ksj1TcnewyRF02aNMz08I0vj9c06zQfutCz\nQFy0i+vSVqMntiwogIJxGpqG2oHWDwioqd2jjgabEwwrimw0kIdvf4HPEt1j\ntsHp\r\n=vjXL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbZS46ldR1VnC+7tExVPL32zOimBXng7r0cswfP/u6HAIhAIOHJM/lMa+6lo8rDiqFnHrNYyemPUJlscB7Jv4WOwyS"}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_1.0.1_1557824300466_0.21818265133591308"},"_hasShrinkwrap":false},"1.0.2":{"name":"bcp-47-match","version":"1.0.2","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","chalk":"^3.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify index.js -s bcp47Match > bcp-47-match.js","build-mangle":"browserify index.js -s bcp47Match -p tinyify > bcp-47-match.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-includes":"off"}},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"settings":{"paddedTable":false},"plugins":["preset-wooorm",["toc",{"heading":"contents"}],["lint-table-pipe-alignment",false]]},"gitHead":"1a9d0541d991923ca6c0d07fb5f86db8422972de","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@1.0.2","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"integrity":"sha512-LugfCkkRdq/h8vVcQjhKxgm+c84AKHMvyNkFyy/jxCnTsEqj2lULoEm9ooUWbwWDwL2rok9GoQXMu7iETJO+uw==","shasum":"a222ff4a34d2b91615e306d3a7352f809ca676ca","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-1.0.2.tgz","fileCount":4,"unpackedSize":14989,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJBRnCRA9TVsSAnZWagAAtNwP+wSVUlQYUCEsFGZv1W1l\n7i4ouuNhoZn13C9WB9A50g6C+qemMzu7BVaJClCBVvjkqeSuJXBu0ZwHxMAX\nYkA6MIWCCrNeJR0OJ2OpelpRQxiQ2zDeENjfu+wer1wX0Glb0AEHsvuiAWCY\ns3YUEn157E25eSnlM3O2zhHbCFsy9izX1cVENW8XOx8rOIZv+nq9SVreIawl\niLKeAiCkvja1VdNd+Hxeon4X4lWwQpP7Om9PP8DIfVmUshgAWP3Ep0uyGfLI\nV1CyxKgfG2Bd+1AXJ9UocpL2jy1kYf6cHWVsP7nr3KZoho1iGsF3cCtNsYxB\n7p1jhRQe0qECSKdVyKEaCVRVWGecpGwydKftja9/qhocP+DAizIxCpYUFQ45\nCwgiOu3NYVipqBgIY4SdMQRFUmxVoYW6CHhbL9Kzew7QNZcrjCV1HTWY1ExZ\n1f+XuLKiijPIIOLgeszpDe0elJkQgQ2Wgg1QOCCTQxqB/FrN0nPq/ARBMXDf\nfg2yq1H6WhT30Dz++63ObsK9414TAlpgImwg7Wfae7JgFz9O/uYrwo0fzyXI\n6qkEDP/CzzRBIedH6YKaHrHQund6/IaL3p1Ph5r67N7ZiUwUpxyHc2yFsxNK\n4DXbnb5NJiZ+2o2y0vKM0/hg5Xq5C1OU+mUFVag2mYET821XVe5NSYeT45pv\n22NC\r\n=aAs7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdHR2K13AXsTKzFhu1I/uAYTEI+L4X2sJXzzoaK9JxTgIhALSkvHX4A3mRq6eBYecR+QqgOHApNqccRZD9LwUWPsZS"}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_1.0.2_1579422822371_0.9926722468173448"},"_hasShrinkwrap":false},"1.0.3":{"name":"bcp-47-match","version":"1.0.3","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^17.0.0","chalk":"^4.0.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","tinyify":"^3.0.0","xo":"^0.34.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","build-bundle":"browserify index.js -s bcp47Match -o bcp-47-match.js","build-mangle":"browserify index.js -s bcp47Match -p tinyify -o bcp-47-match.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"eqeqeq":["error","always",{"null":"ignore"}],"no-eq-null":"off","unicorn/prefer-includes":"off"}},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"remarkConfig":{"plugins":["preset-wooorm",["gfm",{"tablePipeAlign":false}],["lint-table-pipe-alignment",false]]},"gitHead":"5f5137a8ab63a28000823e8254a0809090dc6b3d","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@1.0.3","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LggQ4YTdjWQSKELZF5JwchnBa1u0pIQSZf5lSdOHEdbVP55h0qICA/FUp3+W99q0xqxYa1ZQizTUH87gecII5w==","shasum":"cb8d03071389a10aff2062b862d6575ffd7cd7ef","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-1.0.3.tgz","fileCount":4,"unpackedSize":14733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflr4VCRA9TVsSAnZWagAAn5QP/jA/AwtAgRaJze8xJrrf\n9l0FeVa0sbCyC41QmG5NPjBjmavaO5iG0cnTfPD2/t3O5aGZVQi0orAyB8Bm\ngrrDOplwRbM0PWjzAPhbfCccLzYp5hdMCzXHl1tU5NaLY2ycxjJt3CyGrh/r\noohCFVjZHq9rvJuZ/FvGIj5GffXB2On3m39Wg4XdVDoe+FDKkiQFMNYsBmdh\n9lMgVD0Q32UkPgemUYyHFmhhVHJpVJpfbLvSslkfJhWUPhHkkzpksw5iW2/j\nt0GMbSgEI2eISVdzHofv4X35Ibn2lq646Ng70ta0LjrHDllEFGi5tMMHAoOB\nhQ4TaYOV9OsqOEk1u8eAGq5Zbpqp8kAZxjc31ut3DbPflmQpoa2dYnqlBPYP\nh8li/PkV2+IGY06h+T2cHGRWVWum4RrbhnZbxum7gt+grLtwxGQ322xIv1XZ\nVupD6eEtELbAz3vTCYPQx2p9ZW2ptqiECbSL039EyrP9wDiM6st83NhhEouj\nYW9aXeOkAFatH5sDqRs+mrkq2WEuvqt3B8mg0GXrHgf+GQXZ1T2+L1q1sk9p\n324R/J72+Ph9axoVTz4lsS98f3mWa5awi2NVXLEu/IHjz+pX5hwiH+6bsFeW\nim2OEVtV2/u/XlNB3EgtBk+3ODHUNcw1sRKqRolq6WTQZd8ngFsdqZfk2KVj\njtKp\r\n=Zm1v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCu/Gc+d3jOZRazaa7jHuU242wxEPy7usCvTgBTW86yAiAZHnO8J916/q8nXi1Z9MLFnEQQiZEoInFZ/T0FVQi3vQ=="}]},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_1.0.3_1603714580871_0.35249739150205883"},"_hasShrinkwrap":false},"2.0.0":{"name":"bcp-47-match","version":"2.0.0","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","chalk":"^4.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"import/no-mutable-exports":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm",["gfm",{"tablePipeAlign":false}],["lint-table-pipe-alignment",false]]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"1f4efb75bf89e51a5c5d757adb3893701eb00bde","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"integrity":"sha512-B3/f3fqIdWLUQE/iFIahFmDKB6X2U7RcugRcdEj2Ntju13zrewCSqnEwG92iUUKfkZ6I+UMtT2NCBwLCvXBOmg==","shasum":"d0481051d51608cb5f5d7f75f5f5668e273dc469","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.0.tgz","fileCount":5,"unpackedSize":16946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZZznCRA9TVsSAnZWagAAQUYQAKItsKfc1oVjfobpf1KZ\nDwwTpHSxa6LzM+jq7Mom9uAU1VFev6SIz0ijPG5lZ7OqDscQDAwY7I32MMC7\nzkh8hZ/YS7MJaRf12R0nGVnzo3Do38mNL5MKLEYOHstUrFdAlGTAelKAdf8d\n3mbK6JQN/WX7THvH7UrVNNd399z4Yqex/z9ivwnj6+VG0Rq33+vnlimEl6nA\nQ6tPWKrF18UgomZTRmtSlROMIV5Zu/p7R+5tnOuHjYHeDsvG3vj+4tYAdUJ2\n5AcVlbjYslgbQ6mz8o3r+vcjUVStBWqEy4vl32dg1ALOQsoGzOjrbH0hcoPy\nNoEyT56DR9PA8hNJmQ8Zt/c+YMruWGcUdV0hSdXTh2K+S1+Fn13YkqVV6PH+\nI2KeyY+tch7rlDtm3FoTvSbIonwyzLOLe85xEYKu14hnLS58Q6TjcnVNTdcz\n8y9trZSR4lEZqktJuete7MwakdNtGwytW5kAiOriV6HifI2UPzNpeAMv6Cl6\nmwe2yYCKCujUNpmlLykV0NVEGx1j4h1CuqXCJROP30JBZiuFrzparxRIb4/P\nUvYWs9JHSftTsi/4f9iMgK7Q2ljLvqmVBIMJGgfWZsOZSY5KzQIWTc0z+xEB\nbF4Ph0T7SBsKyF3IXRsJKhdP6HT1TSxZFF4BWIBgih/CQJWibxO6ZzAPKwSt\nhuna\r\n=0Qlt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGM35MJpQzX+IRQVbwxGT8PaQvShbjQuJb8Ia15STRFoAiEA+qjx5OxutIQG75YAYuVyfoo1YDYrMj50x54iyqG1IP8="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_2.0.0_1617272038610_0.8150288982946172"},"_hasShrinkwrap":false},"2.0.1":{"name":"bcp-47-match","version":"2.0.1","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","chalk":"^4.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.46.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm",["gfm",{"tablePipeAlign":false}],["lint-table-pipe-alignment",false]]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"94c31cb95f2ed22a37714bd978952de19a2a1d13","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@2.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-+8o7axFDN/h8xATDM87FhnU1eod87dX0eZz1+cW3gggcicBqrmkZc33KBPWoE49qt5Asi5OhcxSOMOzp3opTfg==","shasum":"aa8e045386dd4356be07b1fd79d614c108459f4e","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.1.tgz","fileCount":5,"unpackedSize":18359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2kg6CRA9TVsSAnZWagAAdGwP/RLNSmeaN3m7+FzJu2ad\nSJX6bLyFvs1Lc73DNuN07RloaF3qz1Y0i/dmIGm2piOilSv8lfeJFPOxlT5M\nH8vqVDEaLAS7EOizVW5DO+tU5c1nxMkPIehYIan/6MQn44WBlL7cWV/6XsHX\nDRBW/naxFbVEa22tsCWVIU5igBa47BBkHphLwIEyWnmPlEoF3vl+rDVoK/sD\nz/jrUa3fu6hUlR8a9rpNh+pnqgyOdo37Kl9JyfhjsON8RpJGALtGv52Sg9zE\nJGzXQNCG1A5NGbO+YBF5aAOdx9ACyC5Fq0WXLIW97pnRj5b/p/8hzFOiRL7/\nQ0b6DZF+Tsbw6AxaqJE993ehki/5VsJLSUoUDUnfch5As63qaJCZR+03mQWw\nJDy56OVDFLVhStulhq63Rx7M3b2YvFHEqV2Fg9dpEbkaiQRNnoVPJAMVgl1z\nF33Ck0W37vUZvxmfYaCwzUR9e+beolY/rJkerAE+qvT9SGyFvP+x3fbTffbn\nRxHdnHPEn4UQ0chozb5/RyOg4f+UcxJosvVn0941BoWegv0gnm1o6E+HXAfb\n+9aMRhzYzSjxda0fHkoFvP5yyebW9un67GJXF3HEkAeSipNTmCsMzx8BZ99/\nbNAy8sL+rXRfljTdXFyfvQolDEss5Qujf9xeIEaT8jtk9TNZqmZiSwXlMns3\nfBkv\r\n=myCb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjIeNuSkk208FuPa5w1x32qxAFLL4uTPtWgE+vocr5VAiAYam+KXu8tBFs1+ZdFcYnpcNskNcsV54KH79C64/fbOw=="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_2.0.1_1636037724616_0.9162208532704388"},"_hasShrinkwrap":false},"2.0.2":{"name":"bcp-47-match","version":"2.0.2","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","chalk":"^5.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.48.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm",["gfm",{"tablePipeAlign":false}],["lint-table-pipe-alignment",false]]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"bc7b65b153985ca1ad5c8722911acac52eb297fb","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@2.0.2","_nodeVersion":"17.4.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-zy5swVXwQ25ttElhoN9Dgnqm6VFlMkeDNljvHSGqGNr4zClUosdFzxD+fQHJVmx3g3KY+r//wV/fmBHsa1ErnA==","shasum":"3323e221eb5b40ddc3b91ed29d847ab459d549c4","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.2.tgz","fileCount":5,"unpackedSize":17992,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVy0fiFYl1bxqQx3Bb7RxBrDwyaL7KvdLeC0sak9rQkAIgPlqwYnDEJbt5Gbq/OoLXvQtG/Z+K8qW3HrHs7nzLJ9E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRE9QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1mQ//aRgXBy2oDgp6fOpwfduUM1Ehot+aoAXYacae7d300IWsxzMD\r\nmcGhw1mvzQidFGzZBk3+seoBO3gNFZKgZ9zo6mU8sLPVpc8zBR3WqBtEOZax\r\nz/b1qHug9fOAhI3BGSMOZYPnqXZVe4vQT3jB5aPSuMrKoTimFXcAo14JCW16\r\nqzW90ku0jcLrWUB2aiaSmiW3+eGIdOCxdke2WDAoLudbGBbngp3SNj9c7S/U\r\ncTHDslDXmyMzo0Jv3wRTOLBK6kygCWmHxywbT90I9rN1o2velYpF6uuU84U/\r\nGSl0HBnxeqS5j4JJIxxU4mDRwxiFRU9iJF6+wbXyb7hCLZS9dWLyi1Pq70BF\r\nngzWohe7cMzk9Dh2grjj5fxeRTN2DbtgScfVptAE0iwwdm6scp099ifrqKRT\r\nEujYepxSTHLRnZoMmu3YCjEat9Qx11UShtw/pQJ253upDMULCpo3Td1UfOuy\r\nCyJz2d1qP1l2/8/ZValnCIpty9ww6/LjLo9jqywIbPESOo8AQPhQozIOHL1R\r\nUr1bGCVOtxw9q8goNH0ygX+OtA9NvYG9f0mN+KuPs/IJA+spors1HU2ynOz+\r\n1qqklP/NkyJTzan3Rsj84HXp8EOHeNUqVO3zTFxSJ7uy8MMhsj8eNJLkrOdE\r\ngdYhG7XlhWVlQfHMVn+sZwWXu+HVSJbbD3k=\r\n=4+dz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_2.0.2_1648643920570_0.5600580228782444"},"_hasShrinkwrap":false},"2.0.3":{"name":"bcp-47-match","version":"2.0.3","description":"Match BCP 47 language tags with language ranges per RFC 4647","license":"MIT","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/node":"^18.0.0","c8":"^7.0.0","chalk":"^5.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.52.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm",["gfm",{"tablePipeAlign":false}],["lint-table-pipe-alignment",false]]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"59d8bf28481e990aa7b38807270d76d2fad98606","homepage":"https://github.com/wooorm/bcp-47-match#readme","_id":"bcp-47-match@2.0.3","_nodeVersion":"19.0.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==","shasum":"603226f6e5d3914a581408be33b28a53144b09d0","tarball":"https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.3.tgz","fileCount":5,"unpackedSize":19524,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYr5Y9RH8VmVBuxCu3dEuXZwN7fjVvSiJLhzqEyqR2UAiEA0SWx97ME6hZv4pFS6FIi5txo6a3NtJ55x6X/3BwJkmA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc3urACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/gQ/8Cw+zNVYsC0fVD5y2b2xAb32vg7m7897GMcNA0dR2sHtbEMs5\r\nKaKcHtmLyhu/HDsm4FyR7kK8qq+mbiD8h2NjlddChV3tJ2fNDk/TR8IbgFvD\r\n5ZcrtBmCK10378u23wImpsHoB03q2+s9hN7uTLa/VAC4M0P6k4P/pCdK6CVn\r\nMKzZ0ujqXfj3QJQg9KuspOKkuC8yL2Czw3mbIwxX3dCVU58R3e3g363Ch62d\r\nYMGUvtVOP73qSSWKCGmNr/qEoNRGSy+apdQpkGKbifRmyVsko5D1UHSSYYTX\r\nDvp3nxJ93CuUIJ/kZBE6JCrTpBYVD/vn96JKA7xZyKin45DKfGFgXpavSJ88\r\nMdrtcRKaXNp/3Yh8wzz5MsxpViHdoXaGUJhZDhOejWKExkTUqxVI0i6tob2J\r\nfjzdUZV84/KirOu31U6lndJEcSeLoR3TigcUoA2iohqEvIGDTdT/705tsS8n\r\njIYlnx/PnzqPLRjU67LrG3YX1Hhd/V22Vgkh9uCcAYehPu7ngNXo0vf5obSp\r\nYERs3gUIBkvH0bm5D/I85c52ZkReJi9oAWnht1wL8a4EoBpdL5DIbgVO9mNT\r\nqhcFr6Wt5tVYvATkR2SSolX+OR6dCJ6dXUljn0a52wSHF23N570cyBZJBez9\r\nm8NsHf4tiGWgK8exnkauDdGkS2dTa8wzs/Q=\r\n=zS0C\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bcp-47-match_2.0.3_1668512683219_0.19405738384641746"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-20T22:13:57.544Z","1.0.0":"2018-07-20T22:13:57.628Z","modified":"2022-11-15T11:44:43.460Z","1.0.1":"2019-05-14T08:58:20.698Z","1.0.2":"2020-01-19T08:33:42.549Z","1.0.3":"2020-10-26T12:16:21.011Z","2.0.0":"2021-04-01T10:13:58.758Z","2.0.1":"2021-11-04T14:55:24.780Z","2.0.2":"2022-03-30T12:38:40.691Z","2.0.3":"2022-11-15T11:44:43.396Z"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"description":"Match BCP 47 language tags with language ranges per RFC 4647","homepage":"https://github.com/wooorm/bcp-47-match#readme","keywords":["bcp","47","bcp47","bcp-47","language","tag","match","matching","check","rfc","4647"],"repository":{"type":"git","url":"git+https://github.com/wooorm/bcp-47-match.git"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"bugs":{"url":"https://github.com/wooorm/bcp-47-match/issues"},"license":"MIT","readme":"<!--lint disable no-html-->\n\n# bcp-47-match\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nMatch BCP 47 language tags with language ranges per RFC 4647.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`basicFilter(tags[, ranges='*'])`](#basicfiltertags-ranges)\n    *   [`extendedFilter(tags[, ranges='*'])`](#extendedfiltertags-ranges)\n    *   [`lookup(tags, ranges)`](#lookuptags-ranges)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package can match [BCP 47][spec] language tags with “language ranges” per\n[RFC 4647][match].\nThis is done by the `:lang()` pseudo class in CSS, the `Accept-Language` HTTP\nheader, and a few other places.\n\n## When should I use this?\n\nYou can use this package if you want to choose a certain document based on\nlanguage tags.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install bcp-47-match\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport * as bcp47Match from 'https://esm.sh/bcp-47-match@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import * as bcp47Match from 'https://esm.sh/bcp-47-match@2?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {basicFilter, extendedFilter, lookup} from 'bcp-47-match'\n\nconst tags = ['en-GB', 'de-CH', 'en', 'de']\n\nconsole.log(basicFilter(tags, '*')) // => [ 'en-GB', 'de-CH', 'en', 'de' ]\nconsole.log(basicFilter(tags, 'en')) // => [ 'en-GB', 'en' ]\nconsole.log(basicFilter(tags, 'en-GB')) // => [ 'en-GB' ]\nconsole.log(basicFilter(tags, ['en-GB', 'en'])) // => [ 'en-GB', 'en' ]\nconsole.log(basicFilter(tags, 'jp')) // => []\n\nconsole.log(extendedFilter(tags, '*')) // => [ 'en-GB', 'de-CH', 'en', 'de' ]\nconsole.log(extendedFilter(tags, 'en')) // => [ 'en-GB', 'en' ]\nconsole.log(extendedFilter(tags, 'en-GB')) // => [ 'en-GB' ]\nconsole.log(extendedFilter(tags, '*-GB')) // => [ 'en-GB' ]\nconsole.log(extendedFilter(tags, ['en-GB', 'en'])) // => [ 'en-GB', 'en' ]\nconsole.log(extendedFilter(tags, 'jp')) // => []\n\nconsole.log(lookup(tags, 'en')) // => 'en'\nconsole.log(lookup(tags, 'en-GB')) // => 'en-GB'\nconsole.log(lookup(tags, ['en-GB', 'en'])) // => 'en-GB'\nconsole.log(lookup(tags, ['en', 'en-GB'])) // => 'en'\nconsole.log(lookup(tags, 'jp')) // => undefined\n```\n\n## API\n\nThis package exports the identifier `basicFilter`, `extendedFilter`, and\n`lookup`.\nThere is no default export.\n\n### `basicFilter(tags[, ranges='*'])`\n\n> 👉 **Note**: See\n> [Basic Filtering spec](https://tools.ietf.org/html/rfc4647#section-3.3.1)\n\nMatch language tags to a list of simple ranges.\nSearches for matches between the first range and all tags, and continues\nwith further ranges.\nReturns a list of matching tags in the order they matched.\n\n<details><summary>View matching table</summary>\n\n| Basic Filter | `*` | `de` | `de-CH` | `de-DE` | `de-*-DE` | `*-CH` |\n| - | - | - | - | - | - | - |\n| `de` | ✔︎ | ✔︎ | | | | |\n| `de-CH` | ✔︎ | ✔︎ | ✔︎ | | | |\n| `de-CH-1996` | ✔︎ | ✔︎ | ✔︎ | | | |\n| `de-DE` | ✔︎ | ✔︎ | | ✔︎ | | |\n| `de-DE-1996` | ✔︎ | ✔︎ | | ✔︎ | | |\n| `de-DE-x-goethe` | ✔︎ | ✔︎ | | ✔︎ | | |\n| `de-Deva` | ✔︎ | ✔︎ | | | | |\n| `de-Deva-DE` | ✔︎ | ✔︎ | | | | |\n| `de-Latf-DE` | ✔︎ | ✔︎ | | | | |\n| `de-Latn-DE` | ✔︎ | ✔︎ | | | | |\n| `de-Latn-DE-1996` | ✔︎ | ✔︎ | | | | |\n| `de-x-DE` | ✔︎ | ✔︎ | | | | |\n| `en` | ✔︎ | | | | | |\n| `en-GB` | ✔︎ | | | | | |\n| `zh` | ✔︎ | | | | | |\n| `zh-Hans` | ✔︎ | | | | | |\n| `zh-Hant` | ✔︎ | | | | | |\n\n</details>\n\n###### Parameters\n\n*   `tags` (`string` or `Array<string>`)\n    — list of BCP 47 tags\n*   `ranges` (`string` or `Array<string>`, default: `'*'`)\n    — list of RFC 4647\n    [basic ranges][basic-range]\n    (aka, matching `/^(\\*|[a-z]{1,8}(-[a-z0-9]{1,8})*)$/i`)\n\n###### Returns\n\nPossibly empty list of matching tags in the order they matched\n(`Array<string>`).\n\n### `extendedFilter(tags[, ranges='*'])`\n\n> 👉 **Note**: See\n> [Extended Filtering spec](https://tools.ietf.org/html/rfc4647#section-3.3.2)\n\nMatch language tags to a list of extended ranges.\nSearches for matches between the first range and all tags, and continues\nwith further ranges.\n\n<details><summary>View matching table</summary>\n\n| Extended Filter | `*` | `de` | `de-CH` | `de-DE` | `de-*-DE` | `*-CH` |\n| - | - | - | - | - | - | - |\n| `de` | ✔︎ | ✔︎ | | | | |\n| `de-CH` | ✔︎ | ✔︎ | ✔︎ | | | ✔︎ |\n| `de-CH-1996` | ✔︎ | ✔︎ | ✔︎ | | | ✔︎ |\n| `de-DE` | ✔︎ | ✔︎ | | ✔︎ | ✔︎ | |\n| `de-DE-1996` | ✔︎ | ✔︎ | | ✔︎ | ✔︎ | |\n| `de-DE-x-goethe` | ✔︎ | ✔︎ | | ✔︎ | ✔︎ | |\n| `de-Deva` | ✔︎ | ✔︎ | | | | |\n| `de-Deva-DE` | ✔︎ | ✔︎ | | ✔︎ | ✔︎ | |\n| `de-Latf-DE` | ✔︎ | ✔︎ | | ✔︎ | ✔︎ | |\n| `de-Latn-DE` | ✔︎ | ✔︎ | | ✔︎ | ✔︎ | |\n| `de-Latn-DE-1996` | ✔︎ | ✔︎ | | ✔︎ | ✔︎ | |\n| `de-x-DE` | ✔︎ | ✔︎ | | | | |\n| `en` | ✔︎ | | | | | |\n| `en-GB` | ✔︎ | | | | | |\n| `zh` | ✔︎ | | | | | |\n| `zh-Hans` | ✔︎ | | | | | |\n| `zh-Hant` | ✔︎ | | | | | |\n\n</details>\n\n###### Parameters\n\n*   `tags` (`string` or `Array<string>`)\n    — list of BCP 47 tags\n*   `ranges` (`string` or `Array<string>`, default: `'*'`)\n    — list of RFC 4647 [extended ranges][extended-range]\n    (aka, matching `/^(\\*|[a-z]{1,8})(-(\\*|[a-z0-9]{1,8}))*$/i`)\n\n###### Returns\n\nPossibly empty list of matching tags in the order they matched\n(`Array<string>`).\n\n### `lookup(tags, ranges)`\n\n> 👉 **Note**: See\n> [Lookup spec](https://tools.ietf.org/html/rfc4647#section-3.4)\n\nFind the best language tag that matches a list of ranges.\nSearches for a match between the first range and all tags, and continues\nwith further ranges.\nReturns the first match, if any.\n\n<details><summary>View matching table</summary>\n\n| Lookup | `*` | `de` | `de-CH` | `de-DE` | `de-*-DE` | `*-CH` |\n| - | - | - | - | - | - | - |\n| `de` | | ✔︎︎ | ✔︎︎ | ✔︎ | ✔︎ | ✔︎ |\n| `de-CH` | | | ✔︎ | | | ✔︎ |\n| `de-CH-1996` | | | | | | ✔︎ |\n| `de-DE` | | | | ✔︎ | | ✔︎ |\n| `de-DE-1996` | | | | | | ✔︎ |\n| `de-DE-x-goethe` | | | | | | ✔︎ |\n| `de-Deva` | | | | | | ✔︎ |\n| `de-Deva-DE` | | | | | | ✔︎ |\n| `de-Latf-DE` | | | | | | ✔︎ |\n| `de-Latn-DE` | | | | | | ✔︎ |\n| `de-Latn-DE-1996` | | | | | | ✔︎ |\n| `de-x-DE` | | | | | | ✔︎ |\n| `en` | | | | | | ✔︎ |\n| `en-GB` | | | | | | ✔︎ |\n| `zh` | | | | | | ✔︎ |\n| `zh-Hans` | | | | | | ✔︎ |\n| `zh-Hant` | | | | | | ✔︎ |\n\n</details>\n\n###### Parameters\n\n*   `tags` (`string` or `Array<string>`)\n    — list of BCP 47 tags\n*   `ranges` (`string` or `Array<string>`)\n    — list of RFC 4647 basic ranges (but `*` is ignored)\n\n###### Returns\n\nFirst matching tag in `tags`, `undefined` otherwise (`string?`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/bcp-47`](https://github.com/wooorm/bcp-47)\n    — parse and serialize BCP 47 language tags\n*   [`wooorm/bcp-47-normalize`](https://github.com/wooorm/bcp-47-normalize)\n    — normalize, canonicalize, and format BCP 47 tags\n*   [`wooorm/iso-3166`](https://github.com/wooorm/iso-3166)\n    — ISO 3166 codes\n*   [`wooorm/iso-639-2`](https://github.com/wooorm/iso-639-2)\n    — ISO 639-2 codes\n*   [`wooorm/iso-639-3`](https://github.com/wooorm/iso-639-3)\n    — ISO 639-3 codes\n*   [`wooorm/iso-15924`](https://github.com/wooorm/iso-15924)\n    — ISO 15924 codes\n*   [`wooorm/un-m49`](https://github.com/wooorm/un-m49)\n    — UN M49 codes\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/bcp-47-match/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/bcp-47-match/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/bcp-47-match.svg\n\n[coverage]: https://codecov.io/github/wooorm/bcp-47-match\n\n[downloads-badge]: https://img.shields.io/npm/dm/bcp-47-match.svg\n\n[downloads]: https://www.npmjs.com/package/bcp-47-match\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/bcp-47-match.svg\n\n[size]: https://bundlephobia.com/result?p=bcp-47-match\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[spec]: https://tools.ietf.org/html/bcp47\n\n[match]: https://tools.ietf.org/html/rfc4647\n\n[basic-range]: https://tools.ietf.org/html/rfc4647#section-2.1\n\n[extended-range]: https://tools.ietf.org/html/rfc4647#section-2.2\n","readmeFilename":"readme.md"}