Socket
Socket
Sign inDemoInstall

@cliqz-oss/node-firefox-connect

Package Overview
Dependencies
6
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cliqz-oss/node-firefox-connect

Connect to a Firefox simulator


Version published
Maintainers
3
Created

Readme

Source

node-firefox-connect Build Status

Connects to a Firefox debuggable runtime.

Install with NPM

This is part of the node-firefox project.

Installation

From git

git clone https://github.com/mozilla/node-firefox-connect.git
cd node-firefox-connect
npm install

If you want to update later on:

cd node-firefox-connect
git pull origin master
npm install

npm

npm install node-firefox-connect

Usage

Connects to a Firefox runtime, given a port number, and returns a client that can be used to interact with said client.

// `connect` returns a Promise
connect(portNumber).then(function(client) {

});

Example

var connect = require('node-firefox-connect');

connect(1234)
  .then(function(client) {
    // Let's show for example all the running apps
    client.getWebapps(function(err, webapps) {
      webapps.listRunningApps(function(err, apps) {
        console.log("Running apps:", apps);
      });
    });
  });

History

This is based on initial work on fxos-connect by Nicola Greco.

Keywords

FAQs

Last updated on 13 Mar 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc