Gathering detailed insights and metrics for browserstack-local
Gathering detailed insights and metrics for browserstack-local
Gathering detailed insights and metrics for browserstack-local
Gathering detailed insights and metrics for browserstack-local
browserstack-local-promise
A promisified version of the browserstack-local proxy
posthog-js
Posthog-js allows you to automatically capture usage and send events to PostHog.
@wdio/browserstack-service
WebdriverIO service for better Browserstack integration
testcafe-browser-provider-browserstack
Browserstack TestCafe browser provider plugin.
npm install browserstack-local
83
Supply Chain
99.1
Quality
74.2
Maintenance
100
Vulnerability
98.1
License
Locked ps-tree version to 1.1.1
Published on 27 Nov 2018
Changed local binary paths to support LocalBinary 7.3. Fixed folder argument.
Published on 19 Oct 2018
Fixed issue with stopping local in docker.
Published on 24 Aug 2018
Updated Tunnel Flags to correspond to the new BrowserStackLocal binary spec
Published on 09 Jan 2017
Fixes binary download errors
Published on 25 Oct 2016
Support proxy for downloading binary
Published on 03 Aug 2016
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
71 Stars
220 Commits
56 Forks
20 Watching
18 Branches
53 Contributors
Updated on 17 Jun 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-8.3%
60,944
Compared to previous day
Last week
2.6%
370,991
Compared to previous week
Last month
4.7%
1,475,265
Compared to previous month
Last year
0.1%
16,256,519
Compared to previous year
5
Nodejs bindings for BrowserStack Local.
npm install browserstack-local
1var browserstack = require('browserstack-local'); 2 3//creates an instance of Local 4var bs_local = new browserstack.Local(); 5 6// replace <browserstack-accesskey> with your key. You can also set an environment variable - "BROWSERSTACK_ACCESS_KEY". 7var bs_local_args = { 'key': '<browserstack-accesskey>' }; 8 9// starts the Local instance with the required arguments 10bs_local.start(bs_local_args, function() { 11 console.log("Started BrowserStackLocal"); 12 13 // check if BrowserStack local instance is running 14 console.log(bs_local.isRunning()); 15 16 // stop the Local instance 17 bs_local.stop(function() { 18 console.log("Stopped BrowserStackLocal"); 19 }); 20}); 21
Apart from the key, all other BrowserStack Local modifiers are optional. For the full list of modifiers, refer BrowserStack Local modifiers. For examples, refer below -
To enable verbose logging -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'verbose': 'true' }
Note - Possible values for 'verbose' modifier are '1', '2', '3' and 'true'
To test local folder rather internal server, provide path to folder as value of this option -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'f': '/my/awesome/folder' }
To kill other running Browserstack Local instances -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'force': 'true' }
To disable local testing for Live and Screenshots, and enable only Automate -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'onlyAutomate': 'true' }
To route all traffic via local(your) machine -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'forceLocal': 'true' }
To use a proxy for local testing -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'proxyHost': '127.0.0.1', 'proxyPort': '8000', 'proxyUser': 'user', 'proxyPass': 'password', 'useCaCertificate': '/Users/test/cert.pem' }
To use local proxy in local testing -
bs_local_args = { 'key': '<browserstack-accesskey>', 'localProxyHost': '127.0.0.1', 'localProxyPort': '8000', 'localProxyUser': 'user', 'localProxyPass': 'password' }
To use PAC (Proxy Auto-Configuration) in local testing -
bs_local_args = { 'key': '<browserstack-accesskey>', 'pac-file': '<pac_file_abs_path>' }
If doing simultaneous multiple local testing connections, set this uniquely for different processes -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'localIdentifier': 'randomstring' }
By default, BrowserStack local wrappers try downloading and executing the latest version of BrowserStack binary in ~/.browserstack or the present working directory or the tmp folder by order. But you can override these by passing the -binarypath argument. Path to specify local Binary path -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'binarypath': '/browserstack/BrowserStackLocal' }
To save the logs to the file while running with the '-v' argument, you can specify the path of the file. By default the logs are saved in the local.log file in the present woring directory. To specify the path to file where the logs will be saved -
1bs_local_args = { 'key': '<browserstack-accesskey>', 'verbose': 'true', 'logFile': '/browserstack/logs.txt' }
To run the test suite run, npm test
.
You can submit bug reports either in the Github issue tracker.
Before submitting an issue please check if there is already an existing issue. If there is, please add any additional information give it a "+1" in the comments.
When submitting an issue please describe the issue clearly, including how to reproduce the bug, which situations it appears in, what you expect to happen, what actually happens, and what platform (operating system and version) you are using.
We love pull requests! We are very happy to work with you to get your changes merged in, however, please keep the following in mind.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no dangerous workflow patterns detected
Reason
all dependencies are pinned
Details
Reason
license file detected
Details
Reason
Found 10/13 approved changesets -- score normalized to 7
Reason
7 existing vulnerabilities detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 1
Details
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
Score
Last Scanned on 2024-11-25
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