is-firefox
Version:
Check if browser is Firefox
28 lines (15 loc) • 434 B
Markdown
> Check if browser is Firefox
*User agent sniffing is [considered](https://developer.mozilla.org/en-US/docs/Browser_detection_using_the_user_agent) bad practice and should be avoided if possible.*
```
$ npm install --save is-firefox
```
```js
var isFirefox = require('is-firefox');
console.log(isFirefox);
//=> false
```
MIT © [Andreas Gillström](http://github.com/gillstrom)