@ianwalter/is-chrome
v1.0.1
Published
Detect whether a browser or user-agent is Chrome
Downloads
2
Maintainers
Readme
@ianwalter/is-chrome
Detect whether a browser or user-agent is Chrome
Installation
yarn add @ianwalter/is-chrome
Usage
Browser:
import isChrome from '@ianwalter/is-chrome'
// Firefox 65:
isChrome() // => false
// Chrome 72:
isChrome() // => true
Node.js:
const isChrome = require('@ianwalter/is-chrome')
// Firefox 65:
isChrome(req.get('user-agent')) // => false
// Chrome 72:
isChrome(req.get('user-agent')) // => true
License
Hippocratic License - See LICENSE
Created by Ian Walter