{"_id":"ua-is-frozen","_rev":"2-975b5842b2945913ec7fdd45833bd437","name":"ua-is-frozen","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"ua-is-frozen","version":"0.1.0","keywords":["ua-parser-js","ua-is-frozen","user-agent","frozen","reduced"],"author":{"name":"Faisal Salman","email":"f@faisalman.com"},"license":"MIT","_id":"ua-is-frozen@0.1.0","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"homepage":"https://github.com/faisalman/ua-is-frozen#readme","bugs":{"url":"https://github.com/faisalman/ua-is-frozen/issues"},"dist":{"shasum":"c6124f5c6a316059ab526b16930ccf1c15a0a6b3","tarball":"https://registry.npmjs.org/ua-is-frozen/-/ua-is-frozen-0.1.0.tgz","fileCount":7,"integrity":"sha512-BwyMQ84hEwfdknpNC5c8EGEw7Fh909RPIAWpQOrQ1c8p5eYyLQiVYqakcwudJrQxRgKd5koIndwlwZ8X3YFkww==","signatures":[{"sig":"MEQCIF9ApOD0OkaZNxHJQh+8ZwXlSfvDhQrm8tV5KQoDFjuwAiAXgdZ+ySXY+iIAi7Oxmt2i7E4PzltCCVJgUwxkJ5cwpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/ua-is-frozen@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4906},"main":"./dist/cjs/index.js","type":"commonjs","title":"isFrozenUA","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.mjs","exports":{".":{"import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js"}},"funding":[{"url":"https://github.com/sponsors/faisalman","type":"github"},{"url":"https://opencollective.com/ua-parser-js","type":"opencollective"},{"url":"https://paypal.me/faisalman","type":"paypal"}],"gitHead":"7d1e43ad81924ddd3cd1d8a8b6bf1b62e9beba6e","scripts":{"test":"mocha ./test","build:cjs":"tsc --module commonjs --outDir ./dist/cjs --target es5","build:esm":"tsc --module esnext --outDir ./dist/esm --target es6"},"_npmUser":{"name":"faisalman","email":"fyzlman@gmail.com"},"repository":{"url":"git+https://github.com/faisalman/ua-is-frozen.git","type":"git"},"_npmVersion":"10.0.0","description":"A freeze-test for your user-agent string","directories":{"src":"src","dist":"dist","test":"test"},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ua-is-frozen_0.1.0_1693939343000_0.17487885110586232","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"ua-is-frozen","version":"0.1.1","keywords":["ua-parser-js","ua-is-frozen","user-agent","frozen","reduced"],"author":{"name":"Faisal Salman","email":"f@faisalman.com"},"license":"MIT","_id":"ua-is-frozen@0.1.1","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"homepage":"https://github.com/faisalman/ua-is-frozen#readme","bugs":{"url":"https://github.com/faisalman/ua-is-frozen/issues"},"dist":{"shasum":"4a9162e6c4f00706d3712fde1da829a8de537da3","tarball":"https://registry.npmjs.org/ua-is-frozen/-/ua-is-frozen-0.1.1.tgz","fileCount":7,"integrity":"sha512-TxhyfblPzcDJXRXu/j+73OI6s1jG6PUZBF/8hjTHoAsjZYKl9IhZzLQlnZHFLe5U2mvL1lMOOmcy647KpUq25A==","signatures":[{"sig":"MEQCICjBnH6mFV/XE9r2Tg3mmE/F4q9P6m6dvgdESAui+EXkAiBTvOTedm4x7er3lO6lUsccP79WsoOrAUt0AYMfSZHSaQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/ua-is-frozen@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4904},"main":"./dist/cjs/index.js","type":"commonjs","title":"isFrozenUA","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"funding":[{"url":"https://github.com/sponsors/faisalman","type":"github"},{"url":"https://opencollective.com/ua-parser-js","type":"opencollective"},{"url":"https://paypal.me/faisalman","type":"paypal"}],"gitHead":"18f0672e06fdabb8ae1c175821cc6082da8afc1f","scripts":{"test":"mocha ./test","build:cjs":"tsc --module commonjs --outDir ./dist/cjs --target es5","build:esm":"tsc --module esnext --outDir ./dist/esm --target es6"},"_npmUser":{"name":"faisalman","email":"fyzlman@gmail.com"},"repository":{"url":"git+https://github.com/faisalman/ua-is-frozen.git","type":"git"},"_npmVersion":"10.0.0","description":"A freeze-test for your user-agent string","directories":{"src":"src","dist":"dist","test":"test"},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ua-is-frozen_0.1.1_1694155010391_0.24987194310345484","host":"s3://npm-registry-packages"}},"0.1.2":{"title":"isFrozenUA","name":"ua-is-frozen","version":"0.1.2","author":{"name":"Faisal Salman","email":"f@faisalman.com"},"description":"A freeze-test for your user-agent string","type":"commonjs","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","exports":{".":{"require":"./dist/cjs/index.js","import":"./dist/esm/index.js"}},"directories":{"dist":"dist","src":"src","test":"test"},"scripts":{"build:cjs":"tsc --module commonjs --outDir ./dist/cjs --target es5","build:esm":"tsc --module esnext --outDir ./dist/esm --target es6 && echo '{\"type\":\"module\"}' > ./dist/esm/package.json","test":"mocha ./test"},"repository":{"type":"git","url":"git+https://github.com/faisalman/ua-is-frozen.git"},"keywords":["ua-parser-js","ua-is-frozen","user-agent","frozen","reduced"],"license":"MIT","bugs":{"url":"https://github.com/faisalman/ua-is-frozen/issues"},"homepage":"https://github.com/faisalman/ua-is-frozen#readme","funding":[{"type":"github","url":"https://github.com/sponsors/faisalman"},{"type":"opencollective","url":"https://opencollective.com/ua-parser-js"},{"type":"paypal","url":"https://paypal.me/faisalman"}],"devDependencies":{"mocha":"^10.2.0","typescript":"^5.2.2"},"_id":"ua-is-frozen@0.1.2","gitHead":"46043fa3abcd90f56d146c72f6efd061c1acdf4d","types":"./dist/cjs/index.d.ts","_nodeVersion":"18.20.4","_npmVersion":"10.9.0","dist":{"integrity":"sha512-RwKDW2p3iyWn4UbaxpP2+VxwqXh0jpvdxsYpZ5j/MLLiQOfbsV5shpgQiw93+KMYQPcteeMQ289MaAFzs3G9pw==","shasum":"bfbc5f06336e379590e36beca444188c7dc3a7f3","tarball":"https://registry.npmjs.org/ua-is-frozen/-/ua-is-frozen-0.1.2.tgz","fileCount":8,"unpackedSize":4980,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/ua-is-frozen@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1oBWUZhs4fwF570N1fs7yKiJwYzrXncQUu88Ecg5HDwIhAM6kvJJeSwZPG+HuN9kV20U1oNjArrMvZYvoj0pmEkgJ"}]},"_npmUser":{"name":"faisalman","email":"fyzlman@gmail.com"},"maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ua-is-frozen_0.1.2_1730978933303_0.5070520518954929"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-05T18:42:22.931Z","modified":"2024-11-07T11:28:53.926Z","0.1.0":"2023-09-05T18:42:23.251Z","0.1.1":"2023-09-08T06:36:50.565Z","0.1.2":"2024-11-07T11:28:53.483Z"},"bugs":{"url":"https://github.com/faisalman/ua-is-frozen/issues"},"author":{"name":"Faisal Salman","email":"f@faisalman.com"},"license":"MIT","homepage":"https://github.com/faisalman/ua-is-frozen#readme","keywords":["ua-parser-js","ua-is-frozen","user-agent","frozen","reduced"],"repository":{"type":"git","url":"git+https://github.com/faisalman/ua-is-frozen.git"},"description":"A freeze-test for your user-agent string","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"readme":"# ua-is-frozen\nA freeze-test for your user-agent string\n\n```sh\nnpm i ua-is-frozen\n```\n\n### * `isFrozenUA(ua:string):boolean`\n\nCheck whether a user-agent string match with [frozen user-agent pattern](https://www.chromium.org/updates/ua-reduction/)\n\n## Code Example\n\n```js\nimport { isFrozenUA } from 'ua-is-frozen';\n\nconst oldChrome = \"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.1234.56 Safari/537.36\"\nconst newChrome = \"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.0.0 Mobile Safari/537.36\";\nconst firefox = \"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0\";\n\nconsole.log(isFrozenUA(oldChrome)); // false\nconsole.log(isFrozenUA(newChrome)); // true\nconsole.log(isFrozenUA(firefox));   // false\n```","readmeFilename":"README.md"}