{"_id":"z-browser-sniffer","_rev":"2-be62918d370df25b49234181974e82dd","name":"z-browser-sniffer","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"z-browser-sniffer","version":"1.0.0","description":"A small helper class for getting information about a browser from the userAgent","main":"src/PasswordGen.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zeraphie/browserSniffer.git"},"keywords":["Browser","Sniffer"],"author":{"name":"Izzy Skye"},"license":"MIT","bugs":{"url":"https://github.com/zeraphie/browserSniffer/issues"},"homepage":"https://github.com/zeraphie/browserSniffer#readme","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-env":"^1.6.1","babelify":"^8.0.0","browserify":"^15.2.0","del":"^3.0.0","gulp":"^3.9.1","gulp-plumber":"^1.2.0","gulp-sourcemaps":"^2.6.3","gulp-uglify":"^3.0.0","gulp-util":"^3.0.8","run-sequence":"^2.2.1","vinyl-buffer":"^1.0.1","vinyl-source-stream":"^2.0.0"},"gitHead":"7eba33462c57416433481c8081b6b58a93ce4e0b","_id":"z-browser-sniffer@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"zeraphie","email":"izzy@zekken.rocks"},"dist":{"integrity":"sha512-1JZ2AsyLcVyjtIv9PS5LWFFOmGLufk5KicLbGZ18c+lscs3HSX5N+4JhGLWs9EyE27/OJya1ZHQMD1f3JhOCHQ==","shasum":"5db4028f02dc5a9449cf2ef9ec80ff8f7361ae5b","tarball":"https://registry.npmjs.org/z-browser-sniffer/-/z-browser-sniffer-1.0.0.tgz","fileCount":7,"unpackedSize":17525,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmXD4/LXAdeKWB6qjvpNGbRL2jMp4niYpSa1DXoYrEZwIhAK9Yqfta9EilHwd5oYHVZ8yK1+f/mENLezNc39jOyZtW"}]},"maintainers":[{"name":"zeraphie","email":"izzy@zekken.rocks"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/z-browser-sniffer_1.0.0_1518434324548_0.08810640489787813"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-12T11:18:44.547Z","1.0.0":"2018-02-12T11:18:46.125Z","modified":"2022-05-25T10:03:49.639Z"},"maintainers":[{"name":"zeraphie","email":"izzy@zekken.rocks"}],"description":"A small helper class for getting information about a browser from the userAgent","homepage":"https://github.com/zeraphie/browserSniffer#readme","keywords":["Browser","Sniffer"],"repository":{"type":"git","url":"git+https://github.com/zeraphie/browserSniffer.git"},"author":{"name":"Izzy Skye"},"bugs":{"url":"https://github.com/zeraphie/browserSniffer/issues"},"license":"MIT","readme":"# Browser Sniffer\nA simple class for getting information about the current browser\n\n---\n\n## Installation\nThis is available as a package on npm so you can add this to your project by using npm or yarn\n\n**npm**\n```bash\nnpm install z-browser-sniffer\n```\n\n**yarn**\n```bash\nyarn add z-browser-sniffer\n```\n\n## Usage\nIn your main JavaScript file, import the class\n\n```javascript\nimport BrowserSniffer from 'z-browser-sniffer';\n\nlet sniff = new BrowserSniffer();\n\n// Gives you access to the browser and the browser's version\nconsole.log(sniff.browser, sniff.name, sniff.version); // Chrome 63, Chrome, 63\n\n// You can also test against them if you want\nconsole.log(sniff.matchBrowser('Chrome 63')); // true/false\n\n// It is case insensitive and matches the individual name and version, but\n// if you want to test individually you can\nconsole.log(sniff.matchName('Chrome')); // true/false\n\n// Note that it's major browser versions\nconsole.log(sniff.matchVersion('63')); // true/false\n```\n\n---\n\n## Building\nIf for some reason, you want to build the files for this library yourself (instead of using the `dist` folder), you can run the following commands to work locally with it\n\n*Note: Don't forget to install the dev dependencies*\n\n**Running `gulp`\n```bash\ngulp # This command builds the files, then watches for any changes in the src directory\ngulp build # This command only builds the files\ngulp watch # This command only watches the files\n```\n","readmeFilename":"README.md"}