{"_id":"random-ua","_rev":"20-686bc6c12237d572788c7897a9864fd2","name":"random-ua","description":"Randomly generates User-Agent strings based on actual usage statistics from Wikimedia.","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"random-ua","version":"0.0.1","main":"./random_ua.js","description":"Randomly generates User-Agent strings based on actual usage statistics from Wikipedia and StatOwl.com as of July 2012.","keywords":["user","agent","browser","user-agent","http","random"],"author":{"name":"Jeffrey Mealo","email":"jeffreymealo@gmail.com","url":"http://www.jeffreymealo.com"},"license":{"type":"MIT"},"repository":{"type":"git","url":"https://github.com/jmealo/random-ua.js"},"directories":{"examples":"examples","test":"test"},"engines":{"node":"*"},"_id":"random-ua@0.0.1","dist":{"shasum":"49d40e7e1a23734352f7b7f8dde428142e9c39e9","tarball":"https://registry.npmjs.org/random-ua/-/random-ua-0.0.1.tgz","integrity":"sha512-Cb3aBiHz/L0Hhi9ikQ2I/GYFRRHSSmxradCYlGCB38P5Vgn1UqCp8KpGWCbt5rEhuI+20HisDalpKGSm4XX+pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEkCXCc9k0TFJDVqK1JC8CKNVwi+YCLeu6c2QFjUs7LAiEA2BQoT4kEzFW8oUHyBR/an8ycTPYuT4OBjRL/eyJdXkk="}]},"_from":"random-ua","_npmVersion":"1.1.69","_npmUser":{"name":"jmealo","email":"jeffreymealo@gmail.com"},"maintainers":[{"name":"jmealo","email":"jeffreymealo@gmail.com"}]},"0.0.2":{"name":"random-ua","version":"0.0.2","main":"./random_ua.js","description":"Randomly generates User-Agent strings based on actual usage statistics from Wikipedia and StatOwl.com as of July 2012.","keywords":["user","agent","browser","user-agent","http","random"],"author":{"name":"Jeffrey Mealo","email":"jeffreymealo@gmail.com","url":"http://www.jeffreymealo.com"},"license":{"type":"MIT"},"repository":{"type":"git","url":"https://github.com/jmealo/random-ua.js.git"},"directories":{"examples":"examples","test":"test"},"engines":{"node":"*"},"_id":"random-ua@0.0.2","dist":{"shasum":"a4b58d599abe8e9f1a6f2efb7d92426acdc076fe","tarball":"https://registry.npmjs.org/random-ua/-/random-ua-0.0.2.tgz","integrity":"sha512-c2+3t+aiLONIGvm27nWRRKIxX9jiqz1CCsTQFEVUr306QIN1fJcfqItJCFiykl2Q3vANfoVGDCLk4yU76ZJOhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiv+HAd3J0Ta6BorCsKpo10+Zn0i0g8WBGSR4USDkEZAiBxyIjwzTcjEWnEtlfUhyjJqS7q6ZNYF1STTAPHPWlbEA=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"jmealo","email":"jeffreymealo@gmail.com"},"maintainers":[{"name":"jmealo","email":"jeffreymealo@gmail.com"}]},"0.0.3":{"name":"random-ua","version":"0.0.3","main":"./random_ua.js","description":"Randomly generates User-Agent strings based on actual usage statistics from Wikipedia and StatOwl.com as of July 2012.","keywords":["user","agent","browser","user-agent","http","random"],"author":{"name":"Jeffrey Mealo","email":"jeffreymealo@gmail.com","url":"http://www.jeffreymealo.com"},"license":{"type":"MIT"},"repository":{"type":"git","url":"https://github.com/jmealo/random-ua.js.git"},"directories":{"examples":"examples","test":"test"},"engines":{"node":"*"},"_id":"random-ua@0.0.3","dist":{"shasum":"bf8da4fe4150feb2173d0d68d3526d67e2b8e449","tarball":"https://registry.npmjs.org/random-ua/-/random-ua-0.0.3.tgz","integrity":"sha512-NK5GNNIQEW4Q4+I4h06jU+UtW9p6RRJcUcdt+3mlkh/J4VCuSmuV/VmSZ5SUCH/lJBjXEEMwJeIT+fg2vOzwcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE0UeaArJVjl123IIATFESaIZUD2s7obr8pWEt6kMksgIhAKNtL1DCLZScuk0exqyWkl3ly+xV9ys8BTaHjk3SOphe"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"jmealo","email":"jeffreymealo@gmail.com"},"maintainers":[{"name":"jmealo","email":"jeffreymealo@gmail.com"}]},"0.0.4":{"name":"random-ua","version":"0.0.4","main":"./random_ua.js","description":"Randomly generates User-Agent strings based on actual usage statistics from Wikipedia and StatOwl.com as of July 2012.","keywords":["user","agent","browser","user-agent","http","random"],"author":{"name":"Jeffrey Mealo","email":"jeffreymealo@gmail.com","url":"http://www.jeffreymealo.com"},"license":{"type":"MIT"},"repository":{"type":"git","url":"https://github.com/jmealo/random-ua.js.git"},"directories":{"examples":"examples","test":"test"},"engines":{"node":"*"},"_id":"random-ua@0.0.4","dist":{"shasum":"2b27822bcf3e811a19a867c3fb116b72d70d21af","tarball":"https://registry.npmjs.org/random-ua/-/random-ua-0.0.4.tgz","integrity":"sha512-oAh50tm1RBJq2BivQDbCIzQBezCZOrNk+o+LSu9g4y0RSTGk3pwlYve8HbVAuxZfDsyvbLJ0XJSOT/JkpBy3QQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFxIJKtFXJ7GlmzL3xF2oK3efqu+Rl2/TibacAzk0ttAiAZ8FAuwsBnKVnKBQ+ocXPyvbeT0sH7afw9YFD1Q8cRwg=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"jmealo","email":"jeffreymealo@gmail.com"},"maintainers":[{"name":"jmealo","email":"jeffreymealo@gmail.com"}]},"0.0.6":{"name":"random-ua","version":"0.0.6","main":"./random_ua.js","description":"Randomly generates User-Agent strings based on actual usage statistics from Wikimedia.","keywords":["user","agent","browser","user-agent","http","random"],"author":{"name":"Jeffrey Mealo","email":"jeffreymealo@gmail.com","url":"http://www.jeffreymealo.com"},"license":{"type":"MIT"},"repository":{"type":"git","url":"https://github.com/jmealo/random-ua.js.git"},"directories":{"test":"test"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/jmealo/random-ua.js/issues"},"homepage":"https://github.com/jmealo/random-ua.js","_id":"random-ua@0.0.6","scripts":{},"_shasum":"eb70901b72a4fe0b8d3ab752a6b25122e40c0ad7","_from":"random-ua.js","_npmVersion":"1.4.14","_npmUser":{"name":"jmealo","email":"jeffreymealo@gmail.com"},"maintainers":[{"name":"jmealo","email":"jeffreymealo@gmail.com"}],"dist":{"shasum":"eb70901b72a4fe0b8d3ab752a6b25122e40c0ad7","tarball":"https://registry.npmjs.org/random-ua/-/random-ua-0.0.6.tgz","integrity":"sha512-tn+qQ4vcvLdnkJqs8eGAcX4VW4ffL4vqXTu3+EbXucYo9qGjET06SxB1+CTGYZBWqc79QnJy1/omSmgtPGGgNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTwFEZTZCyK3cos60PlFGqsuWyrzpVWUgCVvYnBvqFggIgcu28vJ0QRDzTG98oASaZ44v+AcpURyCy1SfcTKQAQlE="}]}}},"readme":"random-ua.js - A random User-Agent Generator\n============================================\nRandomly generates User-Agent strings based on actual browser market share and usage statistics.\n\nCaveats\n-------\nThe version numbers generated are sane, however, revisions are totally random and unlikely to exist in the wild.\n\nI decided not to include language selection found in the PHP version and instead include all the languages in the\n[ISO639-2](http://www.loc.gov/standards/iso639-2/) standard because it's atypical for sites to determine client locale based on the user-agent.\n\nUsage\n-----\n```js\nvar random_ua = require('random-ua');\n\nconsole.log(random_ua.generate());\n//Easy like Sunday morning\n\n//You can easily use random_ua to generate a random User-Agent for an HTTP request:\n\nvar http = require('http');\n\nhttp.get({\n        host:'whatsmyuseragent.com',\n        path:'/',\n        headers:{\n            'User-Agent':random_ua.generate()\n        }\n    },\n    function (res) {\n        if (res.statusCode === 200) {\n            var body = [];\n            res.setEncoding('utf8');\n            res.on('data', function (chunk) {\n                body.push(chunk);\n            });\n            res.on('end', function () {\n                body = body.join('');\n                console.log(body);\n            });\n        } else {\n            console.log('Error retrieving page: ' + res.statusCode);\n        }\n    }\n);\n```\n\nOptions\n-------\nPlease send your suggestions for improvements or updates.\n\nBased Upon\n----------\nThis script is roughly based upon Luka Pusic's PHP script: http://360percents.com/posts/php-random-user-agent-generator/\n\nA refactored version in PHP is available on GitHub at:\nhttps://raw.github.com/mwhite/random-uagent/\n\nLicense\n-------\nMIT License\n","maintainers":[{"name":"jmealo","email":"jeffreymealo@gmail.com"}],"time":{"modified":"2022-06-25T11:47:52.341Z","created":"2013-02-06T04:43:06.291Z","0.0.1":"2013-02-06T04:43:07.055Z","0.0.2":"2013-02-06T04:45:56.422Z","0.0.3":"2013-02-06T06:59:02.783Z","0.0.4":"2013-02-22T15:26:14.284Z","0.0.6":"2014-08-31T01:28:53.685Z"},"author":{"name":"Jeffrey Mealo","email":"jeffreymealo@gmail.com","url":"http://www.jeffreymealo.com"},"repository":{"type":"git","url":"https://github.com/jmealo/random-ua.js.git"},"homepage":"https://github.com/jmealo/random-ua.js","keywords":["user","agent","browser","user-agent","http","random"],"bugs":{"url":"https://github.com/jmealo/random-ua.js/issues"},"license":{"type":"MIT"},"readmeFilename":"README.md","users":{"efernandesng":true}}