{"_id":"koa-i18next-detector","_rev":"14-294d6fcbb3c561e99b12110072f1829b","name":"koa-i18next-detector","dist-tags":{"latest":"1.0.0"},"versions":{"0.3.2":{"name":"koa-i18next-detector","version":"0.3.2","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.3.2","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"77cff52f4209a83bc51f25c31bdafcd6014f3f5c","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.3.2.tgz","integrity":"sha512-s8KujbejDUydGu8f4Xz9HVEr/P6RRfHUKywXWPUJgzQepmwyI7zwaqawgP9LZRBxTwZQ2vIAJG5f0lQK3+40TA==","signatures":[{"sig":"MEYCIQCgG5uF2w74syS0KOZmmdAEYm+FrnYGxJbqbiNuLJL0gQIhAI+UdsXB1gz0RKaeoSNdliKvN+4kZj+XHLpxTagKDTFL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"77cff52f4209a83bc51f25c31bdafcd6014f3f5c","gitHead":"0fb9019245eb8fa6ca7c7658ff5e2f2f59d7a5d4","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.2.0","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.8.0","devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.3.2.tgz_1493740928487_0.6772470811847597","host":"packages-12-west.internal.npmjs.com"}},"0.3.3":{"name":"koa-i18next-detector","version":"0.3.3","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.3.3","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"de3c07b8e4c733b52c33ef66faff6e4fa0fcfe87","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.3.3.tgz","integrity":"sha512-Ix//obBzPnK/fM2os6bnLnxOby1OG7OLzuvVw3rBzASiILqzeZ/TjkpUMbowu9opOJyu7YD6ls3uuNNiWe1uTg==","signatures":[{"sig":"MEQCIC6TF6sIr8zx2YXMFTTzb7JzjEUat9jCmUmpQboo/CD3AiByLZfUaJhDnPWWZm3EaZLXkjqlhs3syp0lrgZVhgG9JQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"de3c07b8e4c733b52c33ef66faff6e4fa0fcfe87","gitHead":"721b290968a304b941d86e5ec7600f999862f09b","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.2.0","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.8.0","devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.3.3.tgz_1493748356154_0.6106783500872552","host":"packages-18-east.internal.npmjs.com"}},"0.4.0":{"name":"koa-i18next-detector","version":"0.4.0","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.4.0","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"2589ee6dd856b6a131b7722275c68f7463fef77d","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.4.0.tgz","integrity":"sha512-WMpih14tkz1cI9Bm5YrNMKcSKL0cStM3WgmVCzjC5Iw2MLfX32WlYABHzqguV/LW94y2PwMAHvwMY2romHEYDA==","signatures":[{"sig":"MEUCIFwqZZoOod+h9pC9TdYHzMVvX1YyYQD++7Pfh81YeD+9AiEAy4UGRLP/UDhsvKasSWSMpAHN/yN0kF2+V/prIGgmd+8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"2589ee6dd856b6a131b7722275c68f7463fef77d","gitHead":"e6db664e6203e1866202978beb0c1d52c9e643cb","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.1.2","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"cookies":"^0.7.0"},"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.4.0.tgz_1493814334656_0.8259517473634332","host":"packages-18-east.internal.npmjs.com"}},"0.4.1":{"name":"koa-i18next-detector","version":"0.4.1","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.4.1","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"3acf58edd9d393d4fa6b3205e2f9793fbabdb5c8","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.4.1.tgz","integrity":"sha512-w6L92UqHbwF/EC28Hdi9O1pP7mHtisUJdsXx/IRTMbBTp+ka/Ft89vKZY96/DJDY9MsYWOzGOP5Xa3+TtOEoGA==","signatures":[{"sig":"MEUCIDLoQ2ggLVeZc6GD7Kpp6oA5KRo25MHFxPsmURvLrkoLAiEAv6qYUptwAZgRBtpu8GFvJteFkjC14RJFrzkyrTZWutA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"3acf58edd9d393d4fa6b3205e2f9793fbabdb5c8","gitHead":"2686536ca4be2562d5cbd549c4a356148a559236","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.1.2","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"cookies":"^0.7.0"},"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.4.1.tgz_1493815268529_0.4195498828776181","host":"packages-12-west.internal.npmjs.com"}},"0.4.2":{"name":"koa-i18next-detector","version":"0.4.2","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.4.2","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"a9f122c663750494da9d075d97739a7a6b0d6833","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.4.2.tgz","integrity":"sha512-ogdRxTJfC46dT5ouIXfqjt6iHCWbFfMZEdogGublV6km3YgV/Pt67Ufofc3003YlBBc/LllsNpPRcKBldjeL5A==","signatures":[{"sig":"MEUCICBt4JHEjcnOuLSfuRcRW9M7hba3RwsTyRAU62twmtG8AiEA28jwwher7Tz2nAoO1/qbNi9xb8mvouxQDXhzwU4Ijb4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"a9f122c663750494da9d075d97739a7a6b0d6833","gitHead":"f5695d2572806cb1f64d8028234498e22fd93ab8","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.1.2","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"cookies":"^0.7.0"},"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.4.2.tgz_1493816936543_0.7847379336599261","host":"packages-12-west.internal.npmjs.com"}},"0.5.0":{"name":"koa-i18next-detector","version":"0.5.0","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.5.0","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"4bedae691f74f4fde584e9ac8912772fa2e79dbc","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.5.0.tgz","integrity":"sha512-xmRm61IIbUqss3q50tsXsvaNjLYSbb5pmrKtkD37QXe+XUNB2gwO8q2QtyqoQBvk9fbNKHLbs+r/ytJ2WKy89A==","signatures":[{"sig":"MEQCICwtLQnaZzDBSaPa60RuMVQUMyLcfryWvlTAyF7TJTzrAiBH+qi6W2gHLGUgBzW/++eBCdB4JmkoVTPuvrnUrJoepg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"4bedae691f74f4fde584e9ac8912772fa2e79dbc","gitHead":"81773b5f1b0069641e23af22bd55bbe3ec070831","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.1.2","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"cookies":"^0.7.0"},"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.5.0.tgz_1493820515460_0.9073716702405363","host":"packages-12-west.internal.npmjs.com"}},"0.6.0":{"name":"koa-i18next-detector","version":"0.6.0","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.6.0","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"4e84538ff2c11eb7ffc6bf42df99720236e4f496","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.6.0.tgz","integrity":"sha512-zRzhfGeW4C0USvki4BZqwF6mVULrd42CuR3E4v/rhHbrvJIT4Hg+S7ESGTEypwvMfLH3gxCJoVrj1wPfoA6D6Q==","signatures":[{"sig":"MEUCIQDJ0SGp5wVsmyJlotU3Bx+f/qPhvnBDEs0QkKFzaJCwIwIgLYy5YRcjRj3HRbgvCs9McgnuuP5iDAFFVLIJ3WeKtMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"4e84538ff2c11eb7ffc6bf42df99720236e4f496","gitHead":"e9ea29ffa2bc2350a7e99d5d85a783b888703bc8","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.2.0","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.8.0","dependencies":{"cookies":"^0.7.0"},"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.6.0.tgz_1493917971226_0.6432053365278989","host":"packages-18-east.internal.npmjs.com"}},"0.7.0":{"name":"koa-i18next-detector","version":"0.7.0","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.7.0","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"fff31ec3c15437656a868549b3705dc44e252b6c","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.7.0.tgz","integrity":"sha512-syXVufh59s5LSt7BuwaHc/VvCuBQb6CEq713loNktm4c6490SWstDMbXz2YGv7Cj2WpnT7zZKPZyMywO7XVyVg==","signatures":[{"sig":"MEUCIEYvWsXiLewIJ7MBjg1iBb5b6v3fYugl7olhF2drGkVYAiEAnYRMgOCiCW+qT4SOLtF1PjK8ztJ+DMNG6++kyS0wAKQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"fff31ec3c15437656a868549b3705dc44e252b6c","gitHead":"d1571943433113f054a2c71246009b3f9bc6fa35","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.1.2","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"cookies":"^0.7.0"},"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.7.0.tgz_1493977813427_0.8759260103106499","host":"packages-18-east.internal.npmjs.com"}},"0.7.1":{"name":"koa-i18next-detector","version":"0.7.1","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.7.1","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"438e310f72e28dcc2c274815340edbe9164fd6e7","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.7.1.tgz","integrity":"sha512-sLfolJwyphffyv75P8GKr0FXyShpFDHHnsjd3gIOPECvn4UoVaMHOZ4viQxrI1TJYQcFsDjp5GTcvKtENVyjHw==","signatures":[{"sig":"MEYCIQDyP8EjLTRV/wN98w3XE/4OeS8u0QVGM6cx7ZJBY8rGlQIhAOFaYqL3ra8Ka1QHN0Ex+5LJLnWOvsUwwXdNcIgYX8D2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","files":["src/","dist/"],"_shasum":"438e310f72e28dcc2c274815340edbe9164fd6e7","gitHead":"e1066add376a929e99f21f2bf3a03c60ba0addbb","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"4.1.2","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"7.6.0","dependencies":{"cookies":"^0.7.0"},"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector-0.7.1.tgz_1493978296151_0.4475238292943686","host":"packages-18-east.internal.npmjs.com"}},"0.7.2":{"name":"koa-i18next-detector","version":"0.7.2","keywords":["i18next detector koa"],"author":{"name":"lxzxl","email":"lixiaozheng1990@gmail.com"},"license":"MIT","_id":"koa-i18next-detector@0.7.2","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"dist":{"shasum":"cbb0226b241182675e75603e641f2b14b5e43920","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-0.7.2.tgz","fileCount":16,"integrity":"sha512-RXgwEB7ADH9h5380v94Gk7i82+PxSap5BKf+XC+aYAKEoPiqnn6i2mNYuO3801hADLutb5YBCMqvIe1xpT+5hw==","signatures":[{"sig":"MEUCIG1mMiV2VGJTBpVZqu2r2opCPow6nQ9SyVhP91iiDehyAiEAskB/153QWGu+bPHYRmWJkn6UGiTItLoP51K8E2RTy80=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcW/XzCRA9TVsSAnZWagAA/gAP/2WoFV8TBIWxQS+H5KN3\npc9oOKCRkiAYgC/933EQd/D8SECSk3ogKddnS7fhsToyXXbWhdlxrPD5DNcm\nKUAP3BGAQWV630CEeoQaEbiSEEds31QfDFP4+uN/3u52mVTj0iWwCtwD7aHs\nP9Afr7r5bbwHmqjaOzqB+3RhxLZ3Jd53ieCJqjDivEkWyt7SUcNms/xKZfWu\n4kvXjDV5zcVn2HabyMKNTiMwl9KYi9iN6tnj3xfhbcq2KefFkkignfZOH1Dm\nCcigC6upCygjPAABQCOEQ3dVarmjfY3eqZaROkYjtgYdEvUiC0BQKnDjxAWf\n6GydPo8MED5rxWCRzOwV1aLOETHo4QOcNnY9zb6coHmYnNRakQ7Dwjk/QHPn\n8upprsJzvbZ5TW9pV7SlxQ2NcNLyhTYfiUT+jeO4FMZNyBzROwy0gld7y4r8\nqTh1MSFHSJnAZ2AnY0P3Ejf9eKMuo8z/ADh3spUSRRDmQBJnYCbOYJAVuHSw\ne/w+SeGakVRHMzPUtPUuHnSQVuFW+R2Xcem1hegOulwj6yc4266qnK63xlGN\npWo9pklSMg6aaff80BIVUPsZRVMQGfqW+UAM63nrnLwBJIIkmokxOwBpaFql\n1o1UGKlI6+VwEe1mpCLHlJPg/51nlxiNe0P65NkuZsehm7BT0QLZOM/fxHGT\nklJZ\r\n=sdtC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"ee4a5625e689ea356a3b8004c1527364ff60ae71","scripts":{"toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md","lint":"eslint src test","build":"babel src -d dist","clean":"rimraf dist","major":"npm version major && npm publish","minor":"npm version minor && npm publish","patch":"npm version patch && npm publish","watch":"watch 'npm run build' src","deploy":"git pull --rebase origin master && git push origin master","prepublish":"npm run build -s","postpublish":"git push origin master --follow-tags"},"_npmUser":{"name":"lxz","email":"lixiaozheng1990@gmail.com"},"repository":{"url":"git+https://github.com/lxzxl/koa-i18next-detector.git","type":"git"},"_npmVersion":"6.4.1","description":"A i18next language detecting plugin for Koa 2.0 framework.","directories":{},"_nodeVersion":"10.15.1","dependencies":{"cookies":"^0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.2.2","watch":"^0.16.0","doctoc":"^0.15.0","eslint":"^1.10.1","rimraf":"^2.4.2","isparta":"^4.0.0","tap-spec":"^4.1.1","babel-cli":"^6.24.1","coveralls":"^2.11.4","babel-core":"^6.24.1","babel-eslint":"^4.1.6","babel-preset-env":"^1.4.0","dependency-check":"^2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/koa-i18next-detector_0.7.2_1549530610563_0.6932513040312835","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"koa-i18next-detector","version":"1.0.0","description":"An i18next language detection plugin for Koa 2 and Koa 3.","type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"sideEffects":false,"engines":{"node":">=18.0.0"},"scripts":{"build":"tsdown","dev":"tsdown --watch","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","prepublishOnly":"pnpm run typecheck && pnpm run test && pnpm run build"},"repository":{"type":"git","url":"git+https://github.com/lxzxl/koa-i18next-detector.git"},"keywords":["i18next","koa","language-detector","i18n","locale"],"author":{"name":"lxzxl","email":"bithub@yahoo.com"},"license":"MIT","bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","devDependencies":{"@types/node":"^24.12.4","i18next":"^26.0.0","tsdown":"^0.22.0","typescript":"^6.0.0","vitest":"^4.0.0"},"packageManager":"pnpm@10.25.0","gitHead":"1ff27dce9540efa544b3c8e19e06b0aca8af59cd","_id":"koa-i18next-detector@1.0.0","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-319MCKNg7Qp+fckqSf3bQUYpnbR/84tSYWevubikmvUoyqWn4mlyTVyk3QMjiYJKeUeGbaXlkfJ3CRdgiC/vCg==","shasum":"7e3d8649422fcc4d808409cb1f940cef4dc2a8a3","tarball":"https://registry.npmjs.org/koa-i18next-detector/-/koa-i18next-detector-1.0.0.tgz","fileCount":17,"unpackedSize":75582,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/koa-i18next-detector@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBTBokv08m2/+lLeSEwV9VNcBTUKZU6vrYMTWS/6aFO0AiARYMj3Y3jdxhWMhSB6N6adU6+52shT3ksVuy/if8WgoA=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d2caf37a-189f-4a0f-9f66-299701117b41"}},"directories":{},"maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/koa-i18next-detector_1.0.0_1781069813816_0.6843391916649617"},"_hasShrinkwrap":false}},"time":{"created":"2017-05-02T16:02:08.804Z","modified":"2026-06-10T05:36:55.050Z","0.3.2":"2017-05-02T16:02:08.804Z","0.3.3":"2017-05-02T18:05:58.061Z","0.4.0":"2017-05-03T12:25:36.494Z","0.4.1":"2017-05-03T12:41:08.764Z","0.4.2":"2017-05-03T13:08:56.838Z","0.5.0":"2017-05-03T14:08:35.708Z","0.6.0":"2017-05-04T17:12:53.718Z","0.7.0":"2017-05-05T09:50:15.604Z","0.7.1":"2017-05-05T09:58:18.723Z","0.7.2":"2019-02-07T09:10:10.653Z","1.0.0":"2026-06-10T05:36:53.944Z"},"bugs":{"url":"https://github.com/lxzxl/koa-i18next-detector/issues"},"author":{"name":"lxzxl","email":"bithub@yahoo.com"},"license":"MIT","homepage":"https://github.com/lxzxl/koa-i18next-detector#readme","keywords":["i18next","koa","language-detector","i18n","locale"],"repository":{"type":"git","url":"git+https://github.com/lxzxl/koa-i18next-detector.git"},"description":"An i18next language detection plugin for Koa 2 and Koa 3.","maintainers":[{"name":"lxz","email":"lixiaozheng1990@gmail.com"}],"readme":"<h1 align=\"center\">koa-i18next-detector</h1>\n\n<p align=\"center\">\n  <a href=\"https://npmjs.org/package/koa-i18next-detector\">\n    <img src=\"https://img.shields.io/npm/v/koa-i18next-detector.svg?style=flat-square\"\n         alt=\"NPM Version\">\n  </a>\n  <a href=\"https://github.com/lxzxl/koa-i18next-detector/actions/workflows/ci.yml\">\n    <img src=\"https://img.shields.io/github/actions/workflow/status/lxzxl/koa-i18next-detector/ci.yml?style=flat-square\"\n         alt=\"Build Status\">\n  </a>\n  <a href=\"https://npmjs.org/package/koa-i18next-detector\">\n    <img src=\"https://img.shields.io/npm/dm/koa-i18next-detector.svg?style=flat-square\"\n         alt=\"Downloads\">\n  </a>\n  <a href=\"https://github.com/lxzxl/koa-i18next-detector/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/npm/l/koa-i18next-detector.svg?style=flat-square\"\n         alt=\"License\">\n  </a>\n</p>\n\n<p align=\"center\"><big>\nAn i18next language detection plugin for Koa 2 and Koa 3.\n</big></p>\n\nDetects the request language from the querystring, URL path, cookie,\n`Accept-Language` header, or session — and can persist it back to a cookie or\nsession. Zero runtime dependencies, ships ESM + CJS with TypeScript types.\n\n## Install\n\n```sh\nnpm i koa-i18next-detector\n# or\npnpm add koa-i18next-detector\n```\n\nRequires Node.js >= 18. Compatible with i18next v19.6+ (tested against v26)\nand Koa 2/3.\n\n## Usage\n\n```ts\nimport i18next from 'i18next'\nimport LanguageDetector from 'koa-i18next-detector'\n// CJS: const { LanguageDetector } = require('koa-i18next-detector')\n\nawait i18next.use(LanguageDetector).init({\n  fallbackLng: 'en',\n  supportedLngs: ['en', 'es'],\n  resources: {\n    en: { translation: { key: 'hello world' } },\n    es: { translation: { key: 'hola mundo' } },\n  },\n  detection: {\n    // all options are optional; these are the defaults\n    order: ['querystring', 'path', 'cookie', 'header', 'session'],\n\n    lookupQuerystring: 'lng',\n\n    lookupParam: 'lng', // for routes like '/:lng/result'\n    lookupFromPathIndex: 0,\n\n    lookupCookie: 'i18next',\n    // cookieExpirationDate: new Date(), // default: now + 1 year\n    // cookieDomain: '',\n    // cookiePath: '/',\n    // cookieSecure: true,\n    // cookieSameSite: 'lax',\n    // cookieHttpOnly: false,\n\n    lookupSession: 'lng',\n\n    // persist the detected language, e.g. ['cookie', 'session']\n    caches: false,\n\n    // convert detected codes, e.g. 'Iso15897' turns 'en-US' into 'en_US',\n    // or pass a function: (lng) => lng.toLowerCase()\n    // convertDetectedLanguage: 'Iso15897',\n  },\n})\n\n// inside a Koa middleware:\nconst lng = i18next.services.languageDetector.detect(ctx)\ni18next.services.languageDetector.cacheUserLanguage(ctx, lng)\n```\n\nPair it with [koa-i18next-middleware](https://github.com/lxzxl/koa-i18next-middleware),\nwhich wires `detect`/`cacheUserLanguage` into the request lifecycle for you.\n\n### Custom detectors\n\n```ts\nimport { LanguageDetector } from 'koa-i18next-detector'\n\nconst lngDetector = new LanguageDetector()\nlngDetector.addDetector({\n  name: 'mySessionDetector',\n\n  lookup(ctx, options) {\n    return ctx.session?.[options.lookupMySession]\n  },\n\n  cacheUserLanguage(ctx, lng, options) {\n    if (ctx.session) ctx.session[options.lookupMySession] = lng\n  },\n})\n\ni18next.use(lngDetector).init({\n  detection: {\n    order: ['mySessionDetector', 'querystring'],\n    lookupMySession: 'lang',\n    caches: ['mySessionDetector'],\n  },\n})\n```\n\n### Built-in lookups\n\n| Name          | Source                                             | Can cache |\n| ------------- | -------------------------------------------------- | --------- |\n| `querystring` | `ctx.query[lookupQuerystring]`                     | –         |\n| `path`        | `ctx.params[lookupParam]` or path segment by index | –         |\n| `cookie`      | `ctx.cookies.get(lookupCookie)`                    | ✓         |\n| `header`      | `Accept-Language` (ordered by `q` value)           | –         |\n| `session`     | `ctx.session[lookupSession]`                       | ✓         |\n\nDetection stops at the first lookup that yields a language i18next reports as\nsupported (`supportedLngs`); otherwise `fallbackLng` is used. Detected values\nare screened against common XSS payloads before being passed to i18next.\n\n## Migrating from 0.x\n\n- Dual ESM/CJS package with TypeScript types. With `require`, use\n  `const { LanguageDetector } = require('koa-i18next-detector')`.\n- Requires Node.js >= 18 and i18next >= 19.6 (the removed\n  `isWhitelisted` API is no longer used).\n- The `cookies` package dependency was dropped; non-Koa contexts now fall back\n  to parsing the `Cookie` header directly.\n- New options: `cookiePath`, `cookieSecure`, `cookieSameSite`,\n  `cookieHttpOnly`, `convertDetectedLanguage`.\n- `addDetector` now throws a `TypeError` for detectors without a `name` or\n  `lookup` and returns the detector instance for chaining.\n- Wildcard (`*`) entries in `Accept-Language` are ignored.\n\n## License\n\nMIT © [lxzxl](https://github.com/lxzxl)\n","readmeFilename":"README.md"}