Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cbt-tunnel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cbt-tunnel

Create a Local Connection for the CrossBrowserTesting app

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

CrossBrowserTesting Tunnel Build Status

Create a Local Connection for the CrossBrowserTesting app. This is a wrapper around cbttunnel.jar, it returns a promise so you can actually know when the connection has been established. The project is inspired by selenium-standalone.

Install

$ npm install --save cbt-tunnel

Usage

You can pass the authentication key as an option:

import cbtTunnel from 'cbt-tunnel';

cbtTunnel({
  authKey: '<your authkey>'
})
  .then(() => {
    // success
  }, () => {
    // error
  });

or an environment variable:

import cbtTunnel from 'cbt-tunnel';

process.env.CBT_AUTH_KEY = '<your authkey>'

cbtTunnel()
  .then(() => {
    // success
  }, () => {
    // error
  });

You can find out what your authentication key is by logging into CrossBrowserTesting, clicking "Enable Local Connection" in the navigation bar and choosing "via Command Line".

API

cbtTunnel([options])

options
authKey

Type: string

The authentication key for your CrossBrowserTesting account. It's required to provide it either via this option or the CBT_AUTH_KEY environment variable.

dir

Type: string

If you want to locally test static HTML pages (i.e. not using a local server), you can do so by specifying the path to that directory. More info.

proxy

Type: object

Uses your computer to connect to a remote proxy server via a public IP address and port number. More info.

proxy.ip

Type: string

proxy.port

Type: number

License

MIT © Matija Marohnić

FAQs

Package last updated on 14 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc