Gathering detailed insights and metrics for karma-detect-browsers
Gathering detailed insights and metrics for karma-detect-browsers
Gathering detailed insights and metrics for karma-detect-browsers
Gathering detailed insights and metrics for karma-detect-browsers
Karma runner plugin for detecting all browsers installed on the current system.
npm install karma-detect-browsers
Typescript
Module System
Node Version
NPM Version
97.8
Supply Chain
100
Quality
76
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
13,594,122
Last Day
9,050
Last Week
61,535
Last Month
255,267
Last Year
2,746,740
NOASSERTION License
46 Stars
115 Commits
9 Forks
10 Watchers
2 Branches
18 Contributors
Updated on Apr 10, 2024
Minified
Minified + Gzipped
Latest Version
2.3.3
Package Id
karma-detect-browsers@2.3.3
Size
5.98 kB
NPM Version
6.4.1
Node Version
10.8.0
Published on
Sep 10, 2018
Cumulative downloads
Total Downloads
Last Day
-1.5%
9,050
Compared to previous day
Last Week
2%
61,535
Compared to previous week
Last Month
7.7%
255,267
Compared to previous month
Last Year
7.1%
2,746,740
Compared to previous year
1
Karma runner plugin for detecting all browsers installed on the current system. Adds all found browsers to the browser array in the karma config file.
The easiest way is to keep karma-detect-browsers
as a devDependency in your package.json
.
1{ 2 "devDependencies": { 3 "karma": "^0.13", 4 "karma-detect-browsers": "^2.0" 5 } 6}
You can simply do it by:
1npm install karma-detect-browsers --save-dev
package.json
file1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 frameworks: ['detectBrowsers'], 5 6 plugins: [ 7 'karma-chrome-launcher', 8 'karma-edge-launcher', 9 'karma-firefox-launcher', 10 'karma-ie-launcher', 11 'karma-safari-launcher', 12 'karma-safaritechpreview-launcher', 13 'karma-opera-launcher', 14 'karma-phantomjs-launcher', 15 'karma-detect-browsers' 16 ] 17 }); 18};
1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 frameworks: ['detectBrowsers'], 5 6 // configuration 7 detectBrowsers: { 8 // enable/disable, default is true 9 enabled: true, 10 11 // enable/disable phantomjs support, default is true 12 usePhantomJS: true, 13 14 // use headless mode, for browsers that support it, default is false 15 preferHeadless: true, 16 17 // post processing of browsers list 18 // here you can edit the list of browsers used by karma 19 postDetection: function(availableBrowsers) { 20 /* Karma configuration with custom launchers 21 customLaunchers: { 22 IE9: { 23 base: 'IE', 24 'x-ua-compatible': 'IE=EmulateIE9' 25 } 26 } 27 */ 28 29 //Add IE Emulation 30 var result = availableBrowsers; 31 32 if (availableBrowsers.indexOf('IE')>-1) { 33 result.push('IE9'); 34 } 35 36 //Remove PhantomJS if another browser has been detected 37 if (availableBrowsers.length > 1 && availableBrowsers.indexOf('PhantomJS')>-1) { 38 var i = result.indexOf('PhantomJS'); 39 40 if (i !== -1) { 41 result.splice(i, 1); 42 } 43 } 44 45 return result; 46 } 47 }, 48 49 plugins: [ 50 'karma-chrome-launcher', 51 'karma-edge-launcher', 52 'karma-firefox-launcher', 53 'karma-ie-launcher', 54 'karma-safari-launcher', 55 'karma-safaritechpreview-launcher', 56 'karma-opera-launcher', 57 'karma-phantomjs-launcher', 58 'karma-detect-browsers' 59 ] 60 }); 61};
In lieu of a formal styleguide take care to maintain the existing coding style. Lint and test your code using grunt.
You can preview your changes by running:
1grunt demo
package.json
file of your projectCopyright (C) 2013-2018 Litixsoft GmbH info@litixsoft.de Licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included i all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/21 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More