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
npm install browserstack-local
Typescript
Module System
Node Version
NPM Version
Locked ps-tree version to 1.1.1
Updated on Nov 27, 2018
Changed local binary paths to support LocalBinary 7.3. Fixed folder argument.
Updated on Oct 19, 2018
Fixed issue with stopping local in docker.
Updated on Aug 24, 2018
Updated Tunnel Flags to correspond to the new BrowserStackLocal binary spec
Updated on Jan 09, 2017
Fixes binary download errors
Updated on Oct 25, 2016
Support proxy for downloading binary
Updated on Aug 03, 2016
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
71 Stars
238 Commits
56 Forks
20 Watchers
22 Branches
51 Contributors
Updated on Jul 01, 2025
Latest Version
1.5.8
Package Id
browserstack-local@1.5.8
Unpacked Size
52.81 kB
Size
13.14 kB
File Count
18
NPM Version
10.9.2
Node Version
22.13.0
Published on
Jul 01, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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 dangerous workflow patterns detected
Reason
13 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
all dependencies are pinned
Details
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/11 approved changesets -- score normalized to 5
Reason
SAST tool is not run on all commits -- score normalized to 4
Details
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
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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