{"_id":"sniffr","_rev":"21-286a14ae5adf83a5342ff7bf7344d385","name":"sniffr","dist-tags":{"latest":"1.4.0"},"versions":{"0.1.1":{"name":"sniffr","version":"0.1.1","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/antivanov","name":"Anton Ivanov","email":"anton.al.ivanov@gmail.com"},"license":"MIT","_id":"sniffr@0.1.1","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/antivanov/sniffr","bugs":{"url":"https://github.com/antivanov/sniffr/issues"},"dist":{"shasum":"28bdd1df1cfa376b116ee0188105cdf824ad19e1","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-0.1.1.tgz","integrity":"sha512-JzmkG+u+RaYdf2n6lStn8mImaktmRrnCIaDiWe86BCVPXnocrZFvLHe5BHS9umCO0/zBfBDgGDh7Dzm7o5Ctzg==","signatures":[{"sig":"MEUCIQC3VVYxECr2XjloRAkYlnLTW9LzilOo8oMTGKnJc6AMCQIgW2FYd8DjdY/SqsvtguQXxq0zdT+Qk3WwfOnr8DFab0E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/sniffr.js","_from":".","files":["examples/node_example.js","src/sniffr.js","LICENSE","README.md"],"_shasum":"28bdd1df1cfa376b116ee0188105cdf824ad19e1","gitHead":"790756d05fb89bbe2aa02475ddf268a99087f91f","scripts":{"test":"grunt lint test"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"https://github.com/antivanov/sniffr.git","type":"git"},"_npmVersion":"1.4.23","description":"Browser, os and device detection","directories":{},"devDependencies":{"bower":"~1.3.2","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.5.1","grunt-contrib-jasmine":"~0.6.5"}},"0.1.2":{"name":"sniffr","version":"0.1.2","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/antivanov","name":"Anton Ivanov","email":"anton.al.ivanov@gmail.com"},"license":"MIT","_id":"sniffr@0.1.2","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/antivanov/sniffr","bugs":{"url":"https://github.com/antivanov/sniffr/issues"},"dist":{"shasum":"19be58c74526bac4e54c90baf095988ed5d289e5","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-0.1.2.tgz","integrity":"sha512-Vl1Fvh2EhuTQPtyIjb9NmspS1CqP3ztbGJ6/SaFHwf8RRbNKj5GwDTrVRXic2qSAbr2RA9arHqbtGJBA1tKZxQ==","signatures":[{"sig":"MEYCIQDV3wjko4gl1CSmR+Dfx2wKMjiKW3+ybqIgosvGpk/LRAIhAIGyIMd/qlu4PjLzuk1kize8WI1YOlyCzhNEc91XXugl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/sniffr.js","_from":".","files":["src/sniffr.js","LICENSE","README.md"],"_shasum":"19be58c74526bac4e54c90baf095988ed5d289e5","gitHead":"02327f95380bd30d9d0a808ade5180f16acaf5a3","scripts":{"test":"grunt lint test"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/antivanov/sniffr.git","type":"git"},"_npmVersion":"3.3.6","description":"Browser, os and device detection","directories":{},"_nodeVersion":"5.0.0","devDependencies":{"bower":"~1.3.2","grunt":"~0.4.4","grunt-cli":"~0.1.13","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.5.1","grunt-contrib-jasmine":"~0.9.2"}},"1.1.3":{"name":"sniffr","version":"1.1.3","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/antivanov","name":"Anton Ivanov","email":"anton.al.ivanov@gmail.com"},"license":"MIT","_id":"sniffr@1.1.3","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/antivanov/sniffr","bugs":{"url":"https://github.com/antivanov/sniffr/issues"},"dist":{"shasum":"401d64b171a674670bf9e6d89df171f5ca5635b7","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.1.3.tgz","integrity":"sha512-kKvlOKwvktbvmcoETqzWb660GH3h2bzlsqhhVlShAIMcOWpLZdd927rxh28ce4/5B35m3o1Zpj73l8eKr3f3ng==","signatures":[{"sig":"MEUCIQCFMu8hI5jDjULinYQNYr3EMV2cnr42lirnYPmkqDMutAIgb1UHoro3R+yL5LfEEbKST2hoEs/+dygzTIdroNkxock=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/sniffr.js","_from":".","files":["src/sniffr.js","LICENSE","README.md"],"_shasum":"401d64b171a674670bf9e6d89df171f5ca5635b7","gitHead":"9378bd849a1bab250a9958eaac6c90581b5cdd27","scripts":{"test":"grunt lint test"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/antivanov/sniffr.git","type":"git"},"_npmVersion":"3.3.6","description":"Browser, os and device detection","directories":{},"_nodeVersion":"5.0.0","devDependencies":{"bower":"~1.3.2","grunt":"~0.4.4","express":"^4.13.4","grunt-cli":"~0.1.13","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.5.1","grunt-contrib-jasmine":"~0.9.2"}},"1.1.4":{"name":"sniffr","version":"1.1.4","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/antivanov","name":"Anton Ivanov","email":"anton.al.ivanov@gmail.com"},"license":"MIT","_id":"sniffr@1.1.4","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/antivanov/sniffr","bugs":{"url":"https://github.com/antivanov/sniffr/issues"},"dist":{"shasum":"c57fa9fc1e8fccc47432be3764ca33b79698e0e8","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.1.4.tgz","integrity":"sha512-DCdII03ZQvhTIOWmjA7LBLd2QEGvpyOhwdgp8IBDaJPW/wkJWQNK1W5Q7YHyEcOX1fXGjXvhst4AtV1W7WNRgw==","signatures":[{"sig":"MEUCICn3VgNAwhKLbp6T00ZXiet7OhStDT/nhLfwc11fu/DwAiEAt12hPOMalBkEi4sKx3mYwEvccY9chnJhb4mxhR0R10E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/sniffr.js","_from":".","files":["src/sniffr.js","LICENSE","README.md"],"_shasum":"c57fa9fc1e8fccc47432be3764ca33b79698e0e8","gitHead":"97b47bc9cf37593b9362d383adf2808ace95d9da","scripts":{"test":"grunt lint test"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/antivanov/sniffr.git","type":"git"},"_npmVersion":"3.3.6","description":"Browser, os and device detection","directories":{},"_nodeVersion":"5.0.0","devDependencies":{"bower":"~1.3.2","grunt":"~0.4.4","express":"^4.13.4","grunt-cli":"~0.1.13","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.5.1","grunt-contrib-jasmine":"~0.9.2"},"_npmOperationalInternal":{"tmp":"tmp/sniffr-1.1.4.tgz_1455050322483_0.8168744486756623","host":"packages-5-east.internal.npmjs.com"}},"1.2.0":{"name":"sniffr","version":"1.2.0","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/antivanov","name":"Anton Ivanov","email":"anton.al.ivanov@gmail.com"},"license":"MIT","_id":"sniffr@1.2.0","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/antivanov/sniffr","bugs":{"url":"https://github.com/antivanov/sniffr/issues"},"dist":{"shasum":"d4e31073ef4f7c00d87dba89289736fba25cadb4","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.2.0.tgz","fileCount":4,"integrity":"sha512-k7C0ZcHBU330LcSkKyc2cOOB0uHosME8b2t9qFJqdqB1cKwGmZWd7BVwBz5mWOMJ5dggK1dy2qv+DSwteKLBzQ==","signatures":[{"sig":"MEQCIHvNbUtFA/t5EYfzVN8n+qhbD+dYxKbl9PsohWIFPGtbAiAVssCT/wYTpMYayMpQQBY8K6S4X4MCgC8NP6NonfFbWA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEXHgCRA9TVsSAnZWagAA7dEP/0CdhPj0xHYoypESDNpL\n2+qLIbn8oLdwtHswZpnphHpE67cMiZEY7N/4eNzh0YkopIFtZpzuwRZ80BeO\n+Nva8Tpz6+M14UVGCSGuKKsCy2jUFGG9NdfEJb4nqUfwhseDAhG3dNk8GhYL\nDCMLkjeRu6sI2LLys/p/ITQImaQTxTlZAbIcjxq6/KNeND+oILrRmv054DmG\nOchjF7IUDeIYRwJGWAOhAG3HI79GcWzVQdiv0noABK76QbGTYBs8w7Kjhf33\nMt39hLrdIx+z2TS2ZsOyYWqr3w6ou+8a8D5tWZecfwaPZplgT8dR5tbC+KX4\nEMo8oarEtwMCUVOB9egzWIfUBRER2/K+LfWAt6HEITDKV7lUUdlNx5J4nqMS\nWHQdg/IbqxFfj4HgYwhqMRX3LGcq4KqPKLvHoq/3fasBbWnTGF7aUdcdbpbo\nTb6AcTHBH47NcgsFnjZgvFQ/V18O3PQM+I/dRHwkbSSIekkqIyZhF2xaxYDA\nLVarm+dhMqCZrNue7dKyUvtyXaN153wJVyP3WWii5TViMkbOTuhUBUCGYKzS\nJG0fMRdYAYC6SHH7YqOuYQ0AQ7CSMIYyDtTEf1UwxnM5oamwSR0srVBzHXgh\ncNQN1uFmHdNv7f+w+Rep6m5sRQRI+QEXt2kB1eF/3gWrAxLoUSGB8kTAUqVC\nxOTW\r\n=VR50\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/sniffr.js","gitHead":"10b71ff265416c9350f054ad36ebc944094b5863","scripts":{"dist":"npm run concat && npm run uglify","lint":"eslint src/* spec/*","test":"karma start karma.conf.js","concat":"concat -o dist/sniffr.js src/modern.js.polyfill.js src/sniffr.js","uglify":"uglifyjs --compress --mangle --output dist/sniffr.min.js -- dist/sniffr.js","test:tdd":"karma start karma.conf.js --tdd"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/antivanov/sniffr.git","type":"git"},"_npmVersion":"6.5.0","description":"Browser, os and device detection","directories":{},"_nodeVersion":"10.4.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.3","mocha":"^5.2.0","concat":"^1.0.3","eslint":"^5.10.0","uglify-js":"^3.4.9","karma-mocha":"^1.3.0","karma-spec-reporter":"0.0.32","mocha-html-reporter":"0.0.1","karma-chrome-launcher":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sniffr_1.2.0_1544647135656_0.75625280908973","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"sniffr","version":"1.2.1","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/antivanov","name":"Anton Ivanov","email":"anton.al.ivanov@gmail.com"},"license":"MIT","_id":"sniffr@1.2.1","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/antivanov/sniffr","bugs":{"url":"https://github.com/antivanov/sniffr/issues"},"dist":{"shasum":"a1284e9725b44491a0617247dab28ac47760cee2","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.2.1.tgz","fileCount":4,"integrity":"sha512-o0FT/2+/jnShx/luPKMAtPt5xBx+TVY+GdblFQp+35/P88ojKNceSD14vC+6/QByqxs3gBUfhVYRRxSxERMuvw==","signatures":[{"sig":"MEYCIQC6+Ns943QFelSzw1bMo0LBslCkP/PIx5BqtUgR4+T/EgIhAOIp1WnFCYkzck4+Hdi9BMovLilRqPeLhPNgQ0ptRwdN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10345},"main":"src/sniffr.js","gitHead":"d4cc1c7844046af6bfb4b55a6857a769cb981afe","scripts":{"dist":"npm run concat && npm run uglify","lint":"eslint src/* spec/*","test":"karma start karma.conf.js","concat":"concat -o dist/sniffr.js src/modern.js.polyfill.js src/sniffr.js","uglify":"uglifyjs --compress --mangle --output dist/sniffr.min.js -- dist/sniffr.js","test:tdd":"karma start karma.conf.js --tdd"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/antivanov/sniffr.git","type":"git"},"_npmVersion":"9.5.0","description":"Browser, os and device detection","directories":{},"_nodeVersion":"14.19.3","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","karma":"^3.1.3","mocha":"^5.2.0","concat":"^1.0.3","eslint":"^5.10.0","uglify-js":"^3.4.9","karma-mocha":"^1.3.0","karma-spec-reporter":"0.0.32","mocha-html-reporter":"0.0.1","karma-chrome-launcher":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/sniffr_1.2.1_1698695275344_0.002698957485771647","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"sniffr","version":"1.2.2","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/amoilanen","name":"Anton Moilanen","email":"anton.a.moilanen@gmail.com"},"license":"MIT","_id":"sniffr@1.2.2","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/amoilanen/sniffr","bugs":{"url":"https://github.com/amoilanen/sniffr/issues"},"dist":{"shasum":"89fec8213569fc156557512ec49fc1551a2f5ec7","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.2.2.tgz","fileCount":4,"integrity":"sha512-Kv++uYY0awkEe0LXXpMfb/mZEsu+zfw0eNswqZO/a0Cczjrmg3mGq1FxwyxEQP6TwngwTWwMwnaEB/3Xmh+RaA==","signatures":[{"sig":"MEQCICdk1I723G/2q9gDqK4mTwPDiPxE8zDWglBu1Fne6LDpAiBn0KtZjUCYAoqfbGB+4bDwf3xiLdXJaMnJLMoWRCvnug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10358},"main":"src/sniffr.js","gitHead":"490ded8aee67fec9adbceee2706b15d421700b78","scripts":{"dist":"npm run concat && npm run uglify","lint":"eslint src/* spec/*","test":"jest","concat":"concat -o dist/sniffr.js src/modern.js.polyfill.js src/sniffr.js","uglify":"uglifyjs --compress --mangle --output dist/sniffr.min.js -- dist/sniffr.js"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/amoilanen/sniffr.git","type":"git"},"_npmVersion":"9.5.0","description":"Browser, os and device detection","directories":{},"_nodeVersion":"14.19.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","concat":"^1.0.3","eslint":"^5.10.0","uglify-js":"^3.4.9"},"_npmOperationalInternal":{"tmp":"tmp/sniffr_1.2.2_1699305496755_0.19451653586760487","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"sniffr","version":"1.3.0","keywords":["browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/amoilanen","name":"Anton Moilanen","email":"anton.a.moilanen@gmail.com"},"license":"MIT","_id":"sniffr@1.3.0","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/amoilanen/sniffr","bugs":{"url":"https://github.com/amoilanen/sniffr/issues"},"dist":{"shasum":"bc515075a42a1c9992012505a0d1b5cdadcb0c62","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.3.0.tgz","fileCount":5,"integrity":"sha512-5RT7RG4jl3N9uOsRyK9SrSQOWOvF+S23FL/+O7Tqa6On3JgdftCJuFBTMgJ0W7FSdRWlF8HwHaQxLJQMvD7+2A==","signatures":[{"sig":"MEUCIF/fQr/B3Gv6Zr6Uwle4hODrTJF6df7qcGBfOShEIc66AiEAsn8qPiWFUB8MM69sfpzP17JkP+sqNniF1gQjjtQkoIY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15248},"main":"dist/sniffr.js","types":"dist/sniffr.d.ts","gitHead":"7ae19b43e0fb4d3398e212cac5348098386ab7fc","scripts":{"dist":"npm run compile && npm run uglify","lint":"eslint src/* spec/*","test":"jest","uglify":"uglifyjs dist/sniffr.js --compress -o dist/sniffr.min.js","compile":"tsc && bash append.preamble.sh"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/amoilanen/sniffr.git","type":"git"},"_npmVersion":"9.5.0","description":"Browser, os and device detection","directories":{},"_nodeVersion":"14.19.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^5.10.0","ts-jest":"^29.1.1","uglify-js":"^3.17.4","typescript":"^5.2.2","@types/jest":"^29.5.8"},"_npmOperationalInternal":{"tmp":"tmp/sniffr_1.3.0_1699478983983_0.5571856808076032","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"sniffr","version":"1.3.1","keywords":["user agent","user agent parsing","user agent detection","browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/amoilanen","name":"Anton Moilanen","email":"anton.a.moilanen@gmail.com"},"license":"MIT","_id":"sniffr@1.3.1","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/amoilanen/sniffr","bugs":{"url":"https://github.com/amoilanen/sniffr/issues"},"dist":{"shasum":"486331ce00aaa80db4880f3935ca178e9851deeb","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.3.1.tgz","fileCount":5,"integrity":"sha512-tSp066VXtJ2f2iUuRa0lRXWF/DdVmqvbQuooYNDhirYDGJ/GCI3/+uo9wQjVvlMcKFv55hv7+v+XOju7nvi5Qg==","signatures":[{"sig":"MEUCIQD58h014cSusHUUl9fX8SFPTaZWa2BDKJRYjSyOB6PVEgIgUzIMnIFGXmJGTbZ8HfaijRxE8OrQXR9KV9iDiBkLXSE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15320},"main":"dist/sniffr.js","types":"dist/sniffr.d.ts","gitHead":"105fe17e4e2c30fc60a14e8e1cec84342f188bbe","scripts":{"dist":"npm run compile && npm run uglify","lint":"eslint src/* spec/*","test":"jest","uglify":"uglifyjs dist/sniffr.js --compress -o dist/sniffr.min.js","compile":"tsc && bash append.preamble.sh"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/amoilanen/sniffr.git","type":"git"},"_npmVersion":"9.5.0","description":"Browser, os and device detection","directories":{},"_nodeVersion":"14.19.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^5.10.0","ts-jest":"^29.1.1","uglify-js":"^3.17.4","typescript":"^5.2.2","@types/jest":"^29.5.8"},"_npmOperationalInternal":{"tmp":"tmp/sniffr_1.3.1_1699536894753_0.07500050796606827","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"sniffr","version":"1.3.2","keywords":["user agent","user agent parsing","user agent detection","browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"url":"https://github.com/amoilanen","name":"Anton Moilanen","email":"anton.a.moilanen@gmail.com"},"license":"MIT","_id":"sniffr@1.3.2","maintainers":[{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"}],"homepage":"https://github.com/amoilanen/sniffr","bugs":{"url":"https://github.com/amoilanen/sniffr/issues"},"dist":{"shasum":"75501c8b77171e7262fda56a1d5cada7696a1082","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.3.2.tgz","fileCount":5,"integrity":"sha512-T887ehviMeNlOsCFEVKenrtPNJskxIVufT+r7OnLZ/HIHKpoSl4nW11yCJR3M2ju015Wc/eXFD5L4NR5WxLKVw==","signatures":[{"sig":"MEUCIQCc5nNOUhN7P1pjO/WtGnSlRZTw1wBwcwyIPLJf7kGeOQIgWk/Col/KJMIEMvhfZO5Z/eblxPDCXXlJK9e66mufl84=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15163},"main":"dist/sniffr.js","types":"dist/sniffr.d.ts","gitHead":"4e056fea0045d9134679113bae7eec81afa87aec","scripts":{"dist":"npm run compile && npm run uglify","lint":"eslint src/* spec/*","test":"jest","uglify":"uglifyjs dist/sniffr.standalone.js --compress -o dist/sniffr.standalone.min.js","compile":"tsc && bash make.standalone.sh"},"_npmUser":{"name":"ant-ivanov","email":"anton.al.ivanov@gmail.com"},"repository":{"url":"git+https://github.com/amoilanen/sniffr.git","type":"git"},"_npmVersion":"9.5.0","description":"Browser, os and device detection","directories":{},"_nodeVersion":"14.19.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^5.10.0","ts-jest":"^29.1.1","uglify-js":"^3.17.4","typescript":"^5.2.2","@types/jest":"^29.5.8"},"_npmOperationalInternal":{"tmp":"tmp/sniffr_1.3.2_1708034262296_0.06418617235101443","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"sniffr","version":"1.4.0","description":"Browser, os and device detection","main":"dist/sniffr.js","types":"dist/sniffr.d.ts","scripts":{"lint":"eslint src/* spec/*","test":"jest","compile":"tsc && bash make.standalone.sh","uglify":"uglifyjs dist/sniffr.standalone.js --compress -o dist/sniffr.standalone.min.js","dist":"npm run compile && npm run uglify"},"repository":{"type":"git","url":"git+https://github.com/amoilanen/sniffr.git"},"keywords":["user agent","user agent parsing","user agent detection","browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"author":{"name":"Anton Moilanen","email":"anton.a.moilanen@gmail.com","url":"https://github.com/amoilanen"},"license":"MIT","bugs":{"url":"https://github.com/amoilanen/sniffr/issues"},"devDependencies":{"@eslint/js":"^9.18.0","@types/jest":"^29.5.14","@types/node":"^20.17.0","@typescript-eslint/eslint-plugin":"^8.20.0","@typescript-eslint/parser":"^8.20.0","eslint":"^9.18.0","jest":"^29.7.0","ts-jest":"^29.2.5","typescript":"^5.7.3","uglify-js":"^3.19.2"},"homepage":"https://github.com/amoilanen/sniffr","_id":"sniffr@1.4.0","gitHead":"a6922fefbca73e09fcf9794d8729c6e96fbd188c","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-Wb8wwYntQWvp5/HQdB4Mu6RwUfGSL5lKZT16Byowtbfp5kCAXu/sggFs1NB3i8Pzd35Aem2WE+tOw7qUjculBg==","shasum":"d617d84bbca8a395d68fef84c9d46732d840120e","tarball":"https://registry.npmjs.org/sniffr/-/sniffr-1.4.0.tgz","fileCount":5,"unpackedSize":31388,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAMOJueatBorv8OLS91sWpbeC73coU2RYllnb3p86axBAiEAzRv1joGbY21bKEk5JxW9J8U8lLyx2/MIk0M+XiUj02E="}]},"_npmUser":{"name":"ant-ivanov","email":"anton.a.moilanen@gmail.com"},"directories":{},"maintainers":[{"name":"ant-ivanov","email":"anton.a.moilanen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sniffr_1.4.0_1764020067376_0.37716124043940513"},"_hasShrinkwrap":false}},"time":{"created":"2014-08-04T23:13:40.861Z","modified":"2025-11-24T21:34:27.809Z","0.1.1":"2014-08-04T23:13:40.861Z","0.1.2":"2015-11-08T14:53:08.523Z","1.1.3":"2016-01-27T22:15:22.008Z","1.1.4":"2016-02-09T20:38:44.096Z","1.2.0":"2018-12-12T20:38:55.745Z","1.2.1":"2023-10-30T19:47:55.542Z","1.2.2":"2023-11-06T21:18:16.923Z","1.3.0":"2023-11-08T21:29:44.222Z","1.3.1":"2023-11-09T13:34:54.951Z","1.3.2":"2024-02-15T21:57:42.463Z","1.4.0":"2025-11-24T21:34:27.606Z"},"bugs":{"url":"https://github.com/amoilanen/sniffr/issues"},"author":{"name":"Anton Moilanen","email":"anton.a.moilanen@gmail.com","url":"https://github.com/amoilanen"},"license":"MIT","homepage":"https://github.com/amoilanen/sniffr","keywords":["user agent","user agent parsing","user agent detection","browser detection","os detection","device detection","sniffing","detection","recognition","browser","os","device"],"repository":{"type":"git","url":"git+https://github.com/amoilanen/sniffr.git"},"description":"Browser, os and device detection","maintainers":[{"name":"ant-ivanov","email":"anton.a.moilanen@gmail.com"}],"readme":"<img src=\"http://publicdomainvectors.org/photos/bastiyxc_schn_ffelhund.png\" alt=\"sniff-sniff...\" width=\"150px\" height=\"100px\"/>\n\nBrowser, OS and device detection based on the available user agent string. Can be used both in a browser (also as a standalone script) or in a server environment.\n\n>it's very rarely a good idea to use user agent sniffing. You can almost always find a better, more broadly compatible way to solve your problem! [MDN: Browser detection using the user agent](https://developer.mozilla.org/en-US/docs/Browser_detection_using_the_user_agent)\n\n> Note: Sniffr is written in Typescript and includes all the necessary typings, can be used both in JavaScript and Typescript projects\n\n## Why use it\n\nIn case some browser-specific issue cannot be fixed uniformly across browsers we may need to perform some browser detection. For example, browser X crashes when function Y from library Z is used, so we have to detect when we are dealing with browser X and disable library Z.\n\n## What is recognized\n\n### Browsers\n\n* Firefox\n* Internet Explorer\n* Edge\n* Chrome\n* Opera\n* Opera mini\n* Safari\n* Android Browser\n* BlackBerry Browser\n* Yandex Browser\n* SeaMonkey\n\n### Operating Systems\n\n* Windows\n* Linux\n* Mac OS\n* ChromeOS\n* iOS\n* Blackberry OS\n* OpenBSD\n* Android\n* Firefox OS\n* Windows Phone\n* Windows Mobile\n\n### Devices\n\n* iPad\n* iPhone\n* Galaxy\n* HTC\n* Nexus\n* Nokia\n* Lumia\n* Blackberry\n* XBox\n\n## Installation\n\n### NPM\n\nTo install the library use npm:\n\n```bash\nnpm install sniffr\n```\n\n### As a standalone script in a browser\n\nHosted version (by jsDelivr) can be found here (replace the version number) https://cdn.jsdelivr.net/gh/amoilanen/sniffr@1.3.2/dist/sniffr.standalone.min.js\n\nhttps://github.com/amoilanen/sniffr/blob/master/dist/sniffr.standalone.min.js is a downloadable minified version of the library to be used as a standalone script\nin a browser.\n\n## How to use in a browser\n\n### NPM\n\nThe library can be directly used in a browser, no server-side code is run.\n\n```javascript\nimport { RecognizedBrowser } from \"sniffr\"\n\n//If Windows and Firefox 28 or later\nif (RecognizedBrowser.os.name === \"windows\"\n  && RecognizedBrowser.browser.name === \"firefox\" && RecognizedBrowser.browser.version[0] >= 28) {\n  //Apply some workaround\n}\n```\n\n#### Using User-Agent and Client Hints API (Recommended for improved accuracy)\n\nFor better accuracy in modern browsers, use the async `sniffHints()` method which leverages the [User-Agent Client Hints API](https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API):\n\n```javascript\nimport Sniffr from \"sniffr\"\n\nconst sniffr = new Sniffr()\nawait sniffr.sniffHints()\n\n//If Windows and Firefox 28 or later\nif (sniffr.os.name === \"windows\"\n  && sniffr.browser.name === \"firefox\" && sniffr.browser.version[0] >= 28) {\n  //Apply some workaround\n}\n```\n\nThe `sniffHints()` method automatically:\n- Uses User-Agent Client Hints API when available (Chrome, Edge, Opera, Brave, etc.)\n- Gracefully falls back to user agent string parsing for unsupported browsers (Firefox, Safari, etc.)\n- Provides more reliable OS, browser, and device detection\n\nFor backward compatibility purposes the old `sniff` method is also supported. This one uses only the user agent string\nand ignored the Client Hints API:\n\n```javascript\nimport Sniffr from \"sniffr\"\n\nconst sniffr = new Sniffr()\nsniffr.sniff()\n\n//If Windows and Firefox 28 or later\nif (sniffr.os.name === \"windows\"\n  && sniffr.browser.name === \"firefox\" && sniffr.browser.version[0] >= 28) {\n  //Apply some workaround\n}\n```\n\n### As a standalone script\n\nWhen the script is loaded `Sniffr` object will be initialized and put to the global namespace, it can be accessed directly:\n\n```javascript\n//If Windows and Firefox 28 or later\nif (Sniffr.os.name === \"windows\"\n  && Sniffr.browser.name === \"firefox\" && Sniffr.browser.version[0] >= 28) {\n  //Apply some workaround\n}\n```\n\n## API\n\n### `RecognizedBrowser` (module-level exports)\n* `RecognizedBrowser.os`: operating system\n* `RecognizedBrowser.browser`: browser\n* `RecognizedBrowser.device`: device\n\n### `Sniffr` class methods\n\n#### `sniff(userAgentString?: string): this`\nSynchronous method that detects browser, OS, and device information using user agent string parsing only.\n\n- **Usage**: Useful for backward compatibility and server-side usage\n- **Parameters**: Optional user agent string. If not provided, uses `navigator.userAgent` in browser\n- **Returns**: `this` (Sniffr instance for chaining)\n- **Supports**: All browsers\n\nExample:\n```javascript\nconst sniffr = new Sniffr()\nsniffr.sniff()\nconsole.log(sniffr.browser.name)\n```\n\n#### `sniffHints(userAgentString?: string): Promise<this>`\nAsynchronous method that uses User-Agent Client Hints API when available for more accurate detection, with automatic fallback to user agent string parsing.\n\n- **Usage**: Recommended for browser environments where accuracy is important\n- **Parameters**: Optional user agent string. If not provided, attempts to fetch UA hints from the browser\n- **Returns**: `Promise<this>` (resolves to Sniffr instance)\n- **Supports**: All browsers (with graceful fallback for unsupported ones)\n- **Privacy**: When UA hints are unavailable or rejected by the browser, falls back to user agent string\n- **Availability**: Automatically detects User-Agent Client Hints API support; no browser checks needed\n\nExample:\n```javascript\nconst sniffr = new Sniffr()\nawait sniffr.sniffHints()\nconsole.log(sniffr.browser.name)\n```\n\n## How to use on the server side\n\nSniffr can also be used in a Node.js environment in case you need to do some server-side user agent analysis as well.\n\nFirst install it\n\n`npm install sniffr`\n\nThen load the module, provide it the agent string and query the results just like in a browser environment:\n\n```javascript\nvar Sniffr = require(\"sniffr\").default;\nvar s = new Sniffr();\n\ns.sniff(\"Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25\");\n\nconsole.log(\"Operating System:\");\nconsole.log(s.os);\nconsole.log(\"Browser:\");\nconsole.log(s.browser);\nconsole.log(\"Device:\");\nconsole.log(s.device);\n```\n\n## Other libraries\n\nSome libraries like _jQuery_ provide only browser information and not the OS information. Some like _Detectizr_ are plugins for other libraries that you may not use. And some require server-side code. A few libraries are usable only on the server or only in a browser.\n\n_Sniffr_ provides simple and symmetric API, does not depend on other libraries, does not require the server part, is tiny, fast and easily extensible. In addition, it can be used both in browser and server environments.\n\n## Credits\n\nThe original sniffing dog image location is http://publicdomainvectors.org/en/free-clipart/Dog-sniffing-vector-image/11807.html\n","readmeFilename":"README.md","users":{"xinwangwang":true,"jugaltheshah":true,"yonisetiawan":true}}