{"_id":"accept-language-parser","_rev":"24-9a1343b0915b690d5455aac0f79ca522","name":"accept-language-parser","description":"Parse the accept-language header from a HTTP request","dist-tags":{"latest":"1.5.0"},"versions":{"1.0.0":{"name":"accept-language-parser","version":"1.0.0","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/andyroyle/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/andyroyle/accept-language-parser/issues"},"homepage":"https://github.com/andyroyle/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-mocha-test":"^0.10.0","should":"^3.2.0","grunt-contrib-jshint":"^0.9.2"},"_id":"accept-language-parser@1.0.0","dist":{"shasum":"a4d25258d7baa27b68841c4133a5393548835ca3","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.0.0.tgz","integrity":"sha512-/yqHItK/wX9jNVajtrlD4QcdoDzze0BE7p/HO14xHUAldLNxWJjijA8FKxX523OilCy3HAtf05OIxL6e7C7z5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGldztcdKbzENhts6JCT7TUhIyHV90GUtILMGj7hihdQIgRTdwYxTdK/EZyMgp+s0hE0gyQcjUToiWylUg67f6Ix4="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"andyroyle","email":"ajroyle@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"}],"directories":{}},"1.0.1":{"name":"accept-language-parser","version":"1.0.1","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/andyroyle/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/andyroyle/accept-language-parser/issues"},"homepage":"https://github.com/andyroyle/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-mocha-test":"^0.10.0","should":"^3.2.0","grunt-contrib-jshint":"^0.9.2"},"_id":"accept-language-parser@1.0.1","dist":{"shasum":"5c359ecd811650d68cafe2bff270ce9d7dbe524c","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.0.1.tgz","integrity":"sha512-FvU27pNUjS/PCGHjznALfdMqB3qqNbkDKCwidD0SNGZRF+NBxLpGEdCUwv1OAD+Uh3uDOwReebBNxdbaip84sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2fqzepzNsj2/NvNAWVCYQdpU6Db2SrWPFez6LdXWk/AiEArUXMyoWv1j17xDVUNhC/0iwTNG5sjGcmeqdllBNmFIs="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"andyroyle","email":"ajroyle@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"}],"directories":{}},"1.0.2":{"name":"accept-language-parser","version":"1.0.2","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-mocha-test":"^0.10.0","should":"^3.2.0","grunt-contrib-jshint":"^0.9.2"},"_id":"accept-language-parser@1.0.2","dist":{"shasum":"7422ac9c60f1b0a9887b4bc1f0acbbca552fd41b","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.0.2.tgz","integrity":"sha512-mFHpEsPT7jBWbK+oGfKDYiQuBC1GgttT13CzHwG1GUdUIQp7aavQ6h0IP0fJjI3kDZdpdcpU8Ecr23VbQmSxDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCh9Xvp4vLc1E8YslNMkCBqXR45IUp9cUPk9ILiKUEt0QIgdnXcue7nfrV37xzDpDCHrvBK5i2R8KPXkNfJLYqcVPA="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"andyroyle","email":"ajroyle@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"}],"directories":{}},"1.1.0":{"name":"accept-language-parser","version":"1.1.0","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-mocha-test":"^0.10.0","should":"^3.2.0","grunt-contrib-jshint":"^0.9.2"},"gitHead":"0a9461a46260b023d175044f63ba723593089ba5","_id":"accept-language-parser@1.1.0","_shasum":"f8f7925fc4aa44a0301bd9d7b4ab149f8f01bd3f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"matteofigus","email":"matteofigus@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"dist":{"shasum":"f8f7925fc4aa44a0301bd9d7b4ab149f8f01bd3f","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.1.0.tgz","integrity":"sha512-FlxYzHOXBJvxHIatYknGw/c3HkQ9emj+Rk5zeh/GPERIc2EdSF5c82RynMI8P/DLeRjOGcZuqDaG8QxeqYSOEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExwbKk8lX0qRm4J4d2nqnngLeqgnxRIReXJQSBo7uBEAiAGgA39I05np6lKhQQ/XG+LF/bKXX1Y7oSYwv9GPZnl1g=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/accept-language-parser-1.1.0.tgz_1463396087373_0.6435981821268797"},"directories":{}},"1.1.1":{"name":"accept-language-parser","version":"1.1.1","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-mocha-test":"^0.10.0","should":"^3.2.0","grunt-contrib-jshint":"^0.9.2"},"gitHead":"09d697dcce4e2aa46d18bb50c0c088d0a50a93e2","_id":"accept-language-parser@1.1.1","_shasum":"b9013543d2c891ccfa819477422336edccacd900","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"matteofigus","email":"matteofigus@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"dist":{"shasum":"b9013543d2c891ccfa819477422336edccacd900","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.1.1.tgz","integrity":"sha512-wfkDqsbzieQGzgwpSsTHKr/zeNdjgPXqtB+5NGLKwJYwgvPpujMZAG+5xH/W4LKx48MYGUVUMG8SGhf7VOr5xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDZGOkE/lntIg4mGHTgYqduAkAKaVOjNMBxYg8wORh+wIhANZHkvCt/hd7keNwoQayKEZ/6OsOyvBHmVbI9X/KUC/J"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/accept-language-parser-1.1.1.tgz_1464036251961_0.7608093332964927"},"directories":{}},"1.1.2":{"name":"accept-language-parser","version":"1.1.2","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-mocha-test":"^0.10.0","should":"^9.0.0","grunt-contrib-jshint":"^0.9.2"},"gitHead":"13d883c946b4394c4db61f42600efb30d94ec7ed","_id":"accept-language-parser@1.1.2","_shasum":"0049993f517e60c3d4faa748866bd3214b8d8dac","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"dist":{"shasum":"0049993f517e60c3d4faa748866bd3214b8d8dac","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.1.2.tgz","integrity":"sha512-lykjqDq6NVjVuC3/mpjVFU+frSGjOReXoQsIe+ZabmlAjBF8IBDaY/CAeeqI2CbNpWxAHWAn1jlxGevyJHo3oA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFJUIFQRXNeq4dve9hY5EJ3Y+VKgnG6FgotRjdPmTm8AIhAL08hU/lFN7SwKjNL+hbBbqxOEX372MAf+KqmW9Ejo5K"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/accept-language-parser-1.1.2.tgz_1465397790049_0.5202823588624597"},"directories":{}},"1.2.0":{"name":"accept-language-parser","version":"1.2.0","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-contrib-jshint":"^1.0.0","grunt-mocha-test":"^0.10.0","should":"^10.0.0"},"gitHead":"cfbb1381298ee2a32c2423abe683e6ea4b355837","_id":"accept-language-parser@1.2.0","_shasum":"6a18942acab3f090a4a09590e03101a99fa22bff","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"matteofigus","email":"matteofigus@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"dist":{"shasum":"6a18942acab3f090a4a09590e03101a99fa22bff","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.2.0.tgz","integrity":"sha512-Ce5v5/wHpExuyj4QVHhB2ea0HY0FfYR9gi/5fog0KToSCcZgn52IknEaHmrmijOL0jxUhnHEg8FmElonYViozw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDBZ3HBRCUsL0R0hmXLW1F49RQA868NNyrqQHjr7mOmAIhAL2fItDI3sLacqY7RwZeaqEguK4CfzuhzgHneTi4qEZo"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/accept-language-parser-1.2.0.tgz_1470734293164_0.5786236173007637"},"directories":{}},"1.3.0":{"name":"accept-language-parser","version":"1.3.0","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"grunt":"^0.4.4","grunt-cli":"^0.1.13","grunt-contrib-jshint":"^1.0.0","grunt-mocha-test":"^0.10.0","should":"^11.0.0"},"gitHead":"c0a4e5737bb3a0dfc29822aba2a1c86e699668f0","_id":"accept-language-parser@1.3.0","_shasum":"21be4e0f46a3f695a0cf08edd2d955369221f3f0","_from":".","_npmVersion":"4.0.2","_nodeVersion":"6.9.0","_npmUser":{"name":"matteofigus","email":"matteofigus@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"dist":{"shasum":"21be4e0f46a3f695a0cf08edd2d955369221f3f0","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.3.0.tgz","integrity":"sha512-Cy4AoBKBFHNKgbkAyPXHh4zDOSQguBYElPYxLJhMcAm30mVYNEq10OiWfuUW/J33DbM7r6J8N+6gr3B5Ynmang==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtrFV9GaMnQjOsnr6LIAl5QX32fu3hKKbrmpPHZ0D3DAIhAI8Djoxy8nAGdJHtCWcuDZWMcwpPVOt1YGLa/vUHhc9F"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/accept-language-parser-1.3.0.tgz_1478864638023_0.11188001255504787"},"directories":{}},"1.4.0":{"name":"accept-language-parser","version":"1.4.0","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"mocha":"mocha tests/","jshint":"jshint index.js tests/","test":"npm run jshint && npm run mocha"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"jshint":"^2.9.4","mocha":"^3.2.0","should":"^11.0.0"},"gitHead":"ae4b6431f4413e78e1c4ec81f32adb3a29c2c2ca","_id":"accept-language-parser@1.4.0","_shasum":"45f242245ddb142e454f109ed6ac076e40b89de0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.1","_npmUser":{"name":"matteofigus","email":"matteofigus@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"dist":{"shasum":"45f242245ddb142e454f109ed6ac076e40b89de0","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.4.0.tgz","integrity":"sha512-Hx8I0ahcmB6bEvEstmTxdPWMFFdZh3mtZDyb1SBLrzbcO44QvqRFjIAfQfX21mDHQaWLV8NXIsUAjjWPb9GxvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDItIkB8ONf+SMA3DtGIxbUMQfScCy1GPw6j8pASooyVAIgUJfxLBpxwTVzpZ4F2JipxrOwdIXQg2jmW3LcCAXwiKw="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/accept-language-parser-1.4.0.tgz_1490628921714_0.9747334585990757"},"directories":{}},"1.4.1":{"name":"accept-language-parser","version":"1.4.1","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"mocha":"mocha tests/","jshint":"jshint index.js tests/","test":"npm run jshint && npm run mocha"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"jshint":"^2.9.4","mocha":"^3.2.0","should":"^11.0.0"},"gitHead":"b337f39349d8c53aad5f1fd7ff826cee352f343c","_id":"accept-language-parser@1.4.1","_shasum":"38774fa9b82d1f38f7315af443165a2190cc8276","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"matteofigus","email":"matteofigus@gmail.com"},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"dist":{"shasum":"38774fa9b82d1f38f7315af443165a2190cc8276","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.4.1.tgz","integrity":"sha512-VRn41l0ZER5VPz+TNDupjogDaKue0TXztrUNlm1tgLORM+PAcgggiNw89mMfCdxustE+VFXCjoCowTYD3lhV4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDplFpRi4v5cORIL953eT1cnDe/8Ftj2Hz1A9sLQVOTWQIgd3n47QaviGT0OGozFMNByrADhNnSjzM5Gqxkn8+D4ms="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accept-language-parser-1.4.1.tgz_1501492923342_0.397754869190976"},"directories":{}},"1.5.0":{"name":"accept-language-parser","version":"1.5.0","description":"Parse the accept-language header from a HTTP request","main":"index.js","scripts":{"mocha":"mocha tests/","jshint":"jshint index.js tests/","test":"npm run jshint && npm run mocha"},"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"keywords":["accept-language","i18n","parser"],"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"homepage":"https://github.com/opentable/accept-language-parser","devDependencies":{"jshint":"^2.9.4","mocha":"^3.4.0","should":"^11.0.0"},"gitHead":"3a1133a42889482e768f01d0b4e4384bb14aa762","_id":"accept-language-parser@1.5.0","_shasum":"8877c54040a8dcb59e0a07d9c1fde42298334791","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.9.4","_npmUser":{"name":"matteofigus","email":"matteofigus@gmail.com"},"dist":{"shasum":"8877c54040a8dcb59e0a07d9c1fde42298334791","tarball":"https://registry.npmjs.org/accept-language-parser/-/accept-language-parser-1.5.0.tgz","fileCount":8,"unpackedSize":13907,"integrity":"sha512-QhyTbMLYo0BBGg1aWbeMG4ekWtds/31BrEU+DONOg/7ax23vxpL03Pb7/zBmha2v7vdD3AyzZVWBVGEZxKOXWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFs32CVeYp5/kY3pxmtqbnzTQ82Jpj5yB8nkEekQJmokAiBUlQm+MXwFEsvfjBU6myPeJGr5ULvkbn9gZ5rCbMPHgA=="}]},"maintainers":[{"name":"andyroyle","email":"ajroyle@gmail.com"},{"name":"matteofigus","email":"matteofigus@gmail.com"},{"name":"pbazydlo","email":"piotr.bazydlo@gmail.com"},{"name":"ryantomlinson","email":"tomlinsonryan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accept-language-parser_1.5.0_1521566306716_0.24813970374935557"},"_hasShrinkwrap":false}},"readme":"accept-language-parser\n======================\n\n[![Build Status](https://travis-ci.org/opentable/accept-language-parser.png?branch=master)](https://travis-ci.org/opentable/accept-language-parser) [![NPM version](https://badge.fury.io/js/accept-language-parser.png)](http://badge.fury.io/js/accept-language-parser) ![Dependencies](https://david-dm.org/opentable/accept-language-parser.png)\n\nParses the accept-language header from an HTTP request and produces an array of language objects sorted by quality.\n\n\n### Installation:\n\n```\nnpm install accept-language-parser\n```\n\n### API\n\n#### parser.parse(acceptLanguageHeader)\n\n```\nvar parser = require('accept-language-parser');\n\nvar languages = parser.parse('en-GB,en;q=0.8');\n\nconsole.log(languages);\n```\n\nOutput will be:\n\n```\n[\n  {\n    code: \"en\",\n    region: \"GB\",\n    quality: 1.0\n  },\n  {\n    code: \"en\",\n    region: undefined,\n    quality: 0.8\n  }\n];\n```\n\nOutput is always sorted in quality order from highest -> lowest. as per the http spec, omitting the quality value implies 1.0.\n\n#### parser.pick(supportedLangugagesArray, acceptLanguageHeader, options = {})\n\n*Alias*: parser.pick(supportedLanguagesArray, parsedAcceptLanguageHeader)\n\n```\nvar parser = require('accept-language-parser');\n\nvar language = parser.pick(['fr-CA', 'fr-FR', 'fr'], 'en-GB,en-US;q=0.9,fr-CA;q=0.7,en;q=0.8');\n\nconsole.log(language);\n```\n\nOutput will be:\n\n```\n\"fr-CA\"\n```\n\nThe `options` currently supports only `loose` option that allows partial matching on supported languages. For example:\n\n\n```\nparser.pick(['fr', 'en'], 'en-GB,en-US;q=0.9,fr-CA;q=0.7,en;q=0.8');\n```\n\nWould return:\n\n```\n\"fr\"\n```\n\nIn loose mode the order of `supportedLanguagesArray` matters, as it is the first partially matching language that is returned. It means that if you want to pick more specific langauge first, you should list it first as well, for example: `['fr-CA', 'fr']`.\n\n### Running test\n```\nnpm install\nnpm test\n```\n\n### License\nMIT\n","maintainers":[{"email":"agustin@colchado.com","name":"acolchado"},{"email":"arnold.zokas@coderoom.net","name":"arnoldzokas"},{"email":"matteofigus@gmail.com","name":"matteofigus"},{"email":"tomlinsonryan@gmail.com","name":"ryantomlinson"},{"email":"ajroyle@gmail.com","name":"andyroyle"},{"email":"piotr.bazydlo@gmail.com","name":"pbazydlo"}],"time":{"modified":"2022-06-13T02:21:09.392Z","created":"2014-03-31T14:16:06.703Z","1.0.0":"2014-03-31T14:16:06.704Z","1.0.1":"2014-05-03T15:10:41.247Z","1.0.2":"2014-05-13T12:35:46.122Z","1.1.0":"2016-05-16T10:54:49.544Z","1.1.1":"2016-05-23T20:44:14.309Z","1.1.2":"2016-06-08T14:56:32.255Z","1.2.0":"2016-08-09T09:18:14.647Z","1.3.0":"2016-11-11T11:43:59.836Z","1.4.0":"2017-03-27T15:35:22.389Z","1.4.1":"2017-07-31T09:22:04.295Z","1.5.0":"2018-03-20T17:18:26.787Z"},"homepage":"https://github.com/opentable/accept-language-parser","keywords":["accept-language","i18n","parser"],"repository":{"type":"git","url":"git://github.com/opentable/accept-language-parser.git"},"author":{"name":"Andy Royle","email":"ajroyle@gmail.com"},"bugs":{"url":"https://github.com/opentable/accept-language-parser/issues"},"license":"MIT","readmeFilename":"README.md","users":{"j.su":true}}