Browser package provides functionality to generate a fake browser value.
$ npm install --save @fakerjs/browser
import browser from '@fakerjs/browser';
browser();
//=> Safari
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko